News for hackers. Stuff that matters.
Re:Zig's dot star syntax (value.*) by wruza on Sunday March 09, 2025 @07:31AM (#43308120)
You mean like if-else if, if-elseif, if-elsif, if-elif? I think I should use eif for my next language. You can have elsf and elf.

It’s not that important though. Many people write two or more languages without mixing the syntax.

p.* and lv.& would be good post-operators, imo. Less going left and parenthesizing.

Re:Zig's dot star syntax (value.*) by FlyingSnake on Sunday March 09, 2025 @05:18PM (#43313966)
But those are all variations of if-else, right?

The alternative to if-else would be something like `assuming-otherwise`.

The point was that there wasn’t really a pressing need to reinvent the *p/&p syntax.