News for hackers. Stuff that matters.
Re:Problems of C, and how Zig addresses them by Mawr on Tuesday July 04, 2023 @05:21PM (#36592644)
> An operator is either a function call or some simple built-in operation.

In theory, yes. In practice, an operator is a simple built-in operation 99.999% of the time, which lures programmers into thinking that's how it always is.

It's like a self-driving car that's safe 99.999% of the time but still requires you to continuously pay attention to take over at a second's notice.

Humans just don't work like that.

Re:Problems of C, and how Zig addresses them by avgcorrection on Tuesday July 04, 2023 @06:46PM (#36593476)
> In theory, yes. In practice, an operator is a simple built-in operation 99.999% of the time, which lures programmers into thinking that's how it always is.

Noo it isn’t. Many languages use something like `+` for string concatenation. Maybe list concatenation.