Re: Syntactic sugar
- Posted by _tom (admin) Mar 20, 2018
- 1504 views
begin said...
hi,
would it be possible to have '#' as an alternative for '!=' ? it's easier to read and less typing.
phix maybe?
richard
The # is already in use by OE
- At the moment # is used for to mean "hexadecimal"
? #FE --> 256
That suggests that:
-- suggested syntax ? #FE # #FC --> 1 -- compared to existing syntax ? #FE != #FC --> 1
- #! is the Unix shebang comment; also in use by OE
- # is used in conventional languages to mean "comment"
My observations:
- not a trivial change to the OE syntax
- not sure the syntactic sugar is an improvement
- quick search does not reveal # is used to mean != elsewhere
Need more convincing that # needs another meaning in OE beyond the existing meanings.
_tom