Re:Lua: A Guide for Redis Users
by wruza on Monday November 21, 2016 @09:31PM
(#13011156)
If you want, you can add t.exists[key]=true, and check it if you really want to know if key exists despite it's value is nil.
That's pretty close to Perl's semantics, where undef is inoperable under 'use strict' but arrays/hashes can have them explicit. Also can move exists out of t easily with weak table.
That said, I really like math-like attitude of definitions in Lua. No bs like 'bloated for your convenience', you just use your logic skills to program.
[ Parent
| on HN ]
There are no comments on this comment yet.