Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ufo
10 months ago
|
parent
|
context
|
favorite
| on:
Teal – A statically-typed dialect of Lua
Tables being dual purpose is fine. The real problem is that assigning nil deletes the table field. Unfortunately, fixing that now would cause Python3 levels of breakage.
90s_dev
10 months ago
[–]
I've never had an issue with =nil being delete. What problem does it cause?
ufo
10 months ago
|
parent
[–]
If you accidentally store nil in an array it creates "holes" inside an array, which breaks the length (#) of the array.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: