Re:C uses "&" for the address-operator because 'ampersand so...
by loup-vaillant on Tuesday October 10, 2023 @09:55AM
(#37832149)
Just remove the ∈ and ⟨ characters, and make braces mandatory:
By the way, the same should have been done with if and while: optional parentheses, mandatory braces:
[ Parent
| on HN ]
Re:C uses "&" for the address-operator because 'ampersand so...
by d-lisp on Tuesday October 10, 2023 @02:42PM
(#37835829)
It's possible that parsing a complex condition wrapped by parentheses was found more convenient.
Re:C uses "&" for the address-operator because 'ampersand so...
by loup-vaillant on Friday October 13, 2023 @02:21PM
(#37873763)
It’s not. Not for humans (the extra parenthesis is just useless clutter), and not for machines (I’ve written parsers, both alternatives are as easy to implement).