Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nmz
81 days ago
|
parent
|
context
|
favorite
| on:
LuaJIT 3.0 proposed syntax extensions
a lone ? can mean anything, you can already tell that . is for fetching a subtable.
orthoxerox
81 days ago
[–]
In C# it's not a lone ?, it's two operators: ?. and ?[
Lua could have ?. ?[ ?" ?{ and ?(
nmz
80 days ago
|
parent
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: