[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: question on <const>
- From: Francisco Olarte <folarte@...>
- Date: Sat, 23 May 2020 20:40:11 +0200
Andrea:
On Sat, May 23, 2020 at 7:54 PM Andrea <andrea.l.vitali@gmail.com> wrote:
> Is there a reason to have opening and closing mark? Or one could get away with something like !close or close! as Philippe was proposing?
Or use ¡const! ( they are portuguese speakers, I'm not sure if they
have taht like in spanish ) (sarcasm, in case someone does not notice
)
> Actually I like the use of the exclamation mark as it draws attention to something peculiar.
Seriously. NO PLEASE. Many people read "!const" as "NOT CONSTANT",
specifically if you have a C / perl / many other languages background
( and many of us do mixed C[++]-lua projects ).
It's bad enough for me they chose ~ for not ( I used ~= a lot for
approximately equal ( very frequent in my writings ) in the
CP/M-messydog times, then came perl where I found ~ natural for match,
along with its variants due to this, then comes lua where it means
not, I have to correct != and ! in the lint stage of nearly every lua
module I write ( exception being the ones where ~= and ~ are not used
). I'm constantly tempted to tweak my interpreters to allow it, and/or
preprocess every source to change it on save.
Francisco Olarte.