start to convert ad-hoc errors to explicit types #30
Reference in New Issue
Block a user
Delete Branch "explicit-error-type"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
i only explicitly converted the string errors in
nodes/mod.rssince that was the performance issue pointed out originally, but i ended up having to convert the return type of everything to match, even thougheyre!is used elsewhere. i made our own version of thebail!andensure!macros that returns our type for compatibility. as we go we can convert moreeyre!invocations and such into explicit types as needed.could you make it so the error type is in a
usestatement for each file instead of prepended? makes the code a ton neater... and you can rename the error type. Also a typedef for a result with that error would be even neater! could import that instead!@technobaboo i'm not sure what you mean by "instead of prepended" but i did the other things.