Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ufo
· 1y ago · 0 comments
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.
Comments
[–]
90s_dev
1y ago
I've never had an issue with =nil being delete. What problem does it cause?
[–]
ufo
OP
1y ago
If you accidentally store nil in an array it creates "holes" inside an array, which breaks the length (#) of the array.