Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
orthoxerox
· 5mo ago · 0 comments
Mike Pall wrote in the issue that it's easier to parse. If they get rid of the ternary operator, I'll ask him again to drop the period.
Comments
[–]
nmz
5mo ago
a lone ? can mean anything, you can already tell that . is for fetching a subtable.
[–]
orthoxerox
OP
5mo ago
In C# it's not a lone ?, it's two operators: ?. and ?[
Lua could have ?. ?[ ?" ?{ and ?(
[–]
nmz
5mo ago
I'd rather it use ?.() the . means getkey, () means expression using .(expr) should be the same as array[], throwing ? as a character should be very obvious what it does.
Better HN