Sujet : Re: about some potentially interesting unicode operators
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 29. Aug 2024, 00:13:58
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vaoavm$3l470$5@dont-email.me>
References : 1 2
User-Agent : Pan/0.160 (Toresk; )
On Wed, 28 Aug 2024 14:17:49 -0000 (UTC), Blue-Maned_Hawk wrote:
I personally hate all operators.
Operators are great. They’re popular in maths because they avoid
parenthesis clutter, leaving the structure of the expression clearer.
Fun fact: Python’s operator precedence rules differ from C’s ones in one
subtle little way, that actually reduces the need for parentheses in real-
world code.
While Python and C++ let you define new overloads for standard operators,
very few languages allow you to define entirely new operators. Algol 68
did (from a limited character set). You can kind of simulate it in Python,
too.