Hacker News
new
past
comments
ask
show
jobs
points
by
Ciantic
10 hours ago
|
comments
by
JBits
7 hours ago
|
[-]
Is there any reason why they're not considering a single '?' like rust? Is it a parsing issue?
So you'd have: obj?:method(…)
reply
by
orthoxerox
4 hours ago
|
parent
|
[-]
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.
reply
by
nmz
47 minutes ago
|
parent
|
[-]
a lone ? can mean anything, you can already tell that . is for fetching a subtable.
reply
by
orthoxerox
36 minutes ago
|
parent
|
[-]
In C# it's not a lone ?, it's two operators: ?. and ?[
Lua could have ?. ?[ ?" ?{ and ?(
reply