Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
naasking
· 4y ago · 0 comments
Storing a null value is a legitimate operation. How do you distinguish "never stored a value under key K", and "stored null under key K"?
Comments
[–]
scgtrp
4y ago
I'm pretty sure you're agreeing with them. Current Lua does this, which is wonky:
> t = {} > t['a'] = nil > t['a'] nil > t['b'] nil