-
Notifications
You must be signed in to change notification settings - Fork 12
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
Abi errors RFC #43
Abi errors RFC #43
Conversation
2e0a7a3
to
900e333
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great rfc. This should make the devx so much better.
- I would like to work on this on the rust sdk side.
It looks great and a really welcome improvement to error handling. The only concern I have is how the syntax at the moment is directed specifically towards ABI error handling, and this functionality seems like it could be pretty useful just as a general error-handling functionality as well, without necessarily being ABI-specific. This ABI terminology feels like it would be a bit out of place if in the future we have some other targets outside the Fuel VM in which the ABI meaning is not as clear-defined. What if we made the terminology around this a bit more generic, like Rust, specifically an The main direct issue I can see with this is that if we also dropped Rust side steps that issue by using |
I deliberately didn't want to use "derive", but I'm not opposed to renaming the trait to Maybe |
Looks good and makes sense. Fix the typo and I'm happy to approve :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me! This will be a big step forward in error handling.
Other than two spelling typos shown in:
https://github.com/FuelLabs/sway-rfcs/pull/43/files#r1857256227
https://github.com/FuelLabs/sway-rfcs/pull/43/files#r1857482020
It seems good to go to me!
Really great work on this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The specification seems to solve all the problems with current reverts, adding msg outputs and line number information to the ABI json. Nice work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great proposal! Straightforward to implement and brings a huge benefit. This is a kind of low hanging fruit I wish we identify more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work on this @IGI-111
Not strong opinion on this suggestion so feel free to resolve if you don't think it makes the intention clearer.
I'd give my explicit approval but compiler level changes are beyond my scope 😅
I approve in theory though 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, this is going to be a huge improvement! Just left a couple of suggestions/questions.
Rendered