Re:(On | No) Syntactic Support for Error Handling
by tialaramex on Wednesday June 04, 2025 @04:25AM
(#44178452)
I could have sworn that like most modern languages Go has `break label` although being statement oriented it doesn't have `break label value`.
[ Parent
| on HN ]
Re:(On | No) Syntactic Support for Error Handling
by LoganDark on Wednesday June 04, 2025 @05:55AM
(#44178999)
I love Rust's ability to return a value from a loop, it's so nice.
Re:(On | No) Syntactic Support for Error Handling
by jchw on Wednesday June 04, 2025 @09:58AM
(#44180818)
It does. Hell, Go also has a goto statement as well, although obviously that's unstructured control flow.
A more refined version of what I originally said would say "conditional branch" instead of "branch", but I'll admit that my original message should have been worded more carefully. I think people understood it, but taken literally it's not a strong argument.