Re: about some potentially interesting unicode operators

Liste des GroupesRevenir à l c 
Sujet : Re: about some potentially interesting unicode operators
De : fir (at) *nospam* grunge.pl (fir)
Groupes : comp.lang.c
Date : 29. Aug 2024, 10:45:48
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <6b58c57dac3de52ae695d0c4936d65fb40f75de4@i2pn2.org>
References : 1 2
User-Agent : Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24
Lawrence D'Oliveiro wrote:
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.
>
its not much about allowing to define operators - but about the fact C lacks some
soem lack is scandalous : min max abs sign and some other (like clamp (?) et.., maybe swap) also i think it would be good to have stronger priority adds and subs
to be able to writa 2+2/4 instead of (2+2)/4
it could be like + - but placed a bit higher (unicode dont have it i guess)
also assign in right could be handy etc...many should be defined

Date Sujet#  Auteur
28 Aug 24 * about some potentially interesting unicode operators23fir
28 Aug 24 +* Re: about some potentially interesting unicode operators20Blue-Maned_Hawk
28 Aug 24 i+* Re: about some potentially interesting unicode operators16Keith Thompson
28 Aug 24 ii+- Re: about some potentially interesting unicode operators1Keith Thompson
29 Aug 24 ii`* Re: about some potentially interesting unicode operators14Lawrence D'Oliveiro
29 Aug 24 ii `* Re: about some potentially interesting unicode operators13Keith Thompson
29 Aug 24 ii  +* Re: about some potentially interesting unicode operators10Janis Papanagnou
29 Aug 24 ii  i`* Re: about some potentially interesting unicode operators9Janis Papanagnou
29 Aug 24 ii  i `* Re: about some potentially interesting unicode operators8Keith Thompson
29 Aug 24 ii  i  `* Re: about some potentially interesting unicode operators7Michael S
29 Aug 24 ii  i   +* Re: about some potentially interesting unicode operators2Michael S
30 Aug 24 ii  i   i`- Re: about some potentially interesting unicode operators1Michael S
29 Aug 24 ii  i   `* Re: about some potentially interesting unicode operators4Keith Thompson
30 Aug 24 ii  i    `* Re: about some potentially interesting unicode operators3Lawrence D'Oliveiro
30 Aug 24 ii  i     `* Re: about some potentially interesting unicode operators2Keith Thompson
31 Aug 24 ii  i      `- Re: about some potentially interesting unicode operators1Lawrence D'Oliveiro
29 Aug 24 ii  +- Re: about some potentially interesting unicode operators1Lawrence D'Oliveiro
29 Aug 24 ii  `- Re: about some potentially interesting unicode operators1David Brown
29 Aug 24 i`* Re: about some potentially interesting unicode operators3Lawrence D'Oliveiro
29 Aug 24 i +- Re: about some potentially interesting unicode operators1Janis Papanagnou
29 Aug 24 i `- Re: about some potentially interesting unicode operators1fir
29 Aug 24 +- Re: about some potentially interesting unicode operators1Lawrence D'Oliveiro
5 Sep 24 `- Re: about some potentially interesting unicode operators1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal