News for hackers. Stuff that matters.
Re:Zig's dot star syntax (value.*) by card_zero on Sunday March 09, 2025 @04:29AM (#43307279)
Gotta escape those asterisks so you don't output italics.

f(*g(*x)) is just as good as f(g(x*)*)

Hmm, function names go before parentheses, that looks like a good reason for dereferencing to be prefix too, otherwise they end up a long way apart.

But in the back of mind I'm thinking "semantics cause pointless fussy arguments, all code is ugly, let's stop programming in text somehow".

Re:Zig's dot star syntax (value.*) by 3836293648 on Sunday March 09, 2025 @06:17AM (#43307798)
Oh yeah, forgot HN supported some markdown.

But this is literally not semantics. Semantics is everything of value, this is just syntax.

Re:Zig's dot star syntax (value.*) by card_zero on Sunday March 09, 2025 @08:07AM (#43308376)
Sorry, yes, syntax. I was equating it to "purely semantic argument", arguing about the meaning of words. Here about it's where to put symbols.