logoalt Hacker News

Ardrentoday at 3:41 AM1 replyview on HN

> For compatibility with other computer languages, the following classic Lua operators can be written in a more customary syntax:

Why though? What does changing `and` to `&&` actually achieve? Were people confused?

Changing the syntax seems very surface level. It's not actually fixing any problems, just making Lua no longer look like Lua. It's not going to help anyone write/learn Lua. It will make everything more complicated as there are now two ways to do everything.

This feels like adding braces to Python because you don't like indenting your code.


Replies

nullpoint420today at 4:46 AM

> This feels like adding braces to Python because you don't like indenting your code.

Now this I can get behind...