Sujet : Re: about some potentially interesting unicode operators
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.lang.cDate : 28. Aug 2024, 20:46:55
Autres entêtes
Organisation : None to speak of
Message-ID : <87a5gwctw0.fsf@nosuchdomain.example.com>
References : 1 2
User-Agent : Gnus/5.13 (Gnus v5.13)
Blue-Maned_Hawk <
bluemanedhawk@invalid.invalid> writes:
I personally hate all operators. That said, i agree with the general idea
that Unicode has a lot of symbols out of ASCII that are underutilized. C
has limitations on what symbols are permitted in identifiers, but in
previous projects of mine, i was able to work within that prison and used
the · character for a sort of psuedonamespacing. (I later abandoned this
practice for other reasons.)
A problem with using non-ASCII Unicode characters as operator
names is that they can be difficult to type -- and the way you type
them is inconsistent across systems.
There's nothing wrong with using identifiers as operator names.
C already does this with "sizeof" et al.
-- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.comvoid Void(void) { Void(); } /* The recursive call of the void */