lua-users home
lua-l archive

Re: [proposal] Using nil/NaN as table index

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2014年04月08日 22:41 GMT+03:00 Dirk Laurie <dirk.laurie@gmail.com>:
> [...]
> When setting a field, these two keys that are a priori known to be
> non-retrievable helpfully throw an error instead of bequeathing
> a thorny debugging problem to the user.
> 
> That's a service, not an inconsistency.
What's inconsistent, in my opinion, is that an error is not thrown when _getting_ a field using those non-retrievable keys, which may result in thorny debugging problems as well. 
Peter

AltStyle によって変換されたページ (->オリジナル) /