Re: Syntactic sugar
- Posted by ghaberek (admin) Mar 20, 2018
- 1494 views
begin said...
would it be possible to have '#' as an alternative for '!=' ? it's easier to read and less typing.
I don't like it. Doesn't seem easier to read to me at all.
I use a lot of different languages and a majority of them use != while some might use <>. A majority of them also use # for single-line comments.
I'm not saying we should continue to do what we've always done, but sometimes conventions stick around because they work and I think what we have works well.
Keep in mind, if readable is what you want, then you can always just use the equal() function.
if not equal( a, b ) then
-Greg