Hacker News new | ask | show | jobs
by nmz 397 days ago
> Lua's syntax is beautifully simple and unambiguous

    local print = print
    ("hello"):format()

    local foo = func
    ("args to func"):itreturnedatable("!")
1 comments

Well of course you can trick people who aren't familiar with its syntax. But people who are see that this is

    local print = print("hello"):format()

    local foo = func("args to func"):itreturnedatable("!")
And I'm sure they can guess that that does.
I didn't trick anybody, this was a pitfall that was patched in 5.2