Re:Rust from 0 to 80% for JavaScript Developers
by eyelidlessness on Sunday May 01, 2022 @02:26AM
(#31222702)
I genuinely don’t think this is right! The syntax is equivalent to try->catch->throw or whatever but it doesn’t change the fact that the function has a clear either/Result type. Every call site gets the same return and has the same error semantics whether that syntax is used or an explicit return statement/expression is used. ? just means it’s a potential early return. Not a goto.
[ Parent
| on HN ]
There are no comments on this comment yet.