Deutsch English Français Italiano |
<6b58c57dac3de52ae695d0c4936d65fb40f75de4@i2pn2.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail From: fir <fir@grunge.pl> Newsgroups: comp.lang.c Subject: Re: about some potentially interesting unicode operators Date: Thu, 29 Aug 2024 10:45:48 +0200 Organization: i2pn2 (i2pn.org) Message-ID: <6b58c57dac3de52ae695d0c4936d65fb40f75de4@i2pn2.org> References: <ad7303b3dd7422351ca7aedae5c62c44b87d29f3@i2pn2.org> <pan$49d0b$11f78ad1$d60b5799$120ef802@invalid.invalid> <vaoavm$3l470$5@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 29 Aug 2024 08:45:51 -0000 (UTC) Injection-Info: i2pn2.org; logging-data="117997"; mail-complaints-to="usenet@i2pn2.org"; posting-account="+ydHcGjgSeBt3Wz3WTfKefUptpAWaXduqfw5xdfsuS0"; User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24 X-Spam-Checker-Version: SpamAssassin 4.0.0 In-Reply-To: <vaoavm$3l470$5@dont-email.me> Bytes: 2201 Lines: 31 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