News for hackers. Stuff that matters.
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.
Re:Looking at Zig Programming Language by 0des on Tuesday April 05, 2022 @07:42PM (#30926593)
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.
Re:Looking at Zig Programming Language by wyldfire on Tuesday April 05, 2022 @01:20PM (#30921873)
That makes sense. But it's easy to confuse a prose ellipsis with the C++ notation for indicating the wildcard exception acceptance pattern.
Re:Looking at Zig Programming Language by kjs3 on Tuesday April 05, 2022 @05:03PM (#30925002)
Zig is not C++.
Re:Looking at Zig Programming Language by hibbelig on Tuesday April 05, 2022 @05:33PM (#30925326)
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.
Re:Looking at Zig Programming Language by wyldfire on Tuesday April 05, 2022 @06:44PM (#30926070)
Sorry, I suppose you could infer that but it was not my intent. It was merely my suggestion that someone's new exposure to Zig might be 'tainted' by previous exposure to C++ syntax.