[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: need help: some features of Lua don't fit well together
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 14 Apr 2015 12:58:08 -0300
> We're a database embedded into Lua, and struggling with coercing Lua
> type system into the data model we adopted.
I am not sure I understood your problem. You say "the data model we
adopted." So, either you can change that data model to better match
Lua values, or else you explicitly want that specific data model for
whatever reason, and then you could simply outlaw Lua values that
do not fit your model (e.g., raise an error if a function returns more
than one value or if a table mixes numeric and non-numeric keys).
-- Roberto