> 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.
An operator is either a function call or some simple built-in operation.
Thus not hidden.
That syntactic elements that consist of symbols rather than alnum and that are used as prefix or infix operators are necessarily “not a function call” is just a rule that can be changed.