-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: improve Error handling (clean up unwrap
s)
#736
Comments
I think that this is too generic can you be more specific |
in particular we have to distinguish between low-level library and application. Now considering that we are going to have mid level library we have 3 "zone"
|
For the libraries every unwrap should be documented if it is not we have to open issues for it. For the application we have |
whatever we decide we should add a code reviews police doc or something like that. For example we can say that every result in the a application zone that is unhandled must be put in a |
this is a good start, but at some point I believe that some kind of refactoring introducing some it will not be a trivial/small effort, however
usually I tend to avoid macros unless absolutely necessary in my past job, I worked for around ~2y on the go-to-market vertical of @paritytech, where our main product was our overall consensus was that our heavy usage of macros on the codebase was slowing down developer adoption because macros are always harder to understand. while returning
apologies for the lack of clarity here, I will take some time to elaborate more concrete examples across the codebase along with suggestions on what to do about them I will write more comments on this issue in the future overall, my personal opinion is just that excessive usage of |
also related: #773 |
unwrap
)unwrap
)
unwrap
)unwrap
s)
as @jakubtrnka pointed out in #723 (comment), we should improve error handling across SRI codebase
while I do believe and understand that there are responsible ways to use
unwrap
, as the codebase grows and becomes more complex for newcomers to understand, theseunwrap
s can quickly become footguns with long-term consequences on the maintenability and overall code quality of the projectThe text was updated successfully, but these errors were encountered: