Re:Looking at Zig Programming Language
by nonsequitur on Tuesday April 05, 2022 @12:55PM
(#30921499)
Hint: It's `catch {}` instead of `catch { ... }`.
[ Parent
| on HN ]
Re:Looking at Zig Programming Language
by anonymoushn on Tuesday April 05, 2022 @01:03PM
(#30921624)
That's right if you want to do nothing on error. I think TFA uses `...` to represent the code they would actually want to run if an error happened.
That's how I've always interpreted it unless its a convo about slices which are few. Everyone knows slices are the bees knees item 9, so not often does it need discussing.
That makes sense. But it's easy to confuse a prose ellipsis with the C++ notation for indicating the wildcard exception acceptance pattern.
Zig is not C++.
May no programming language ever introduce “foo” or “bar” keywords, lest mayhem be upon us.
Re:Looking at Zig Programming Language
by planckscnst on Wednesday April 06, 2022 @02:19AM
(#30929006)
Now I'm thinking there must be some brainfuck-like language called foobar.