lua-users home
lua-l archive

Re: Tuples and other constant values

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


2015年07月07日 0:13 GMT+02:00 Coda Highland <chighland@gmail.com>:
> A large proportion of the tuple users I've met are Python converts.
2015年07月08日 2:34 GMT+02:00 Tim Hill <drtimhill@gmail.com>:
> You can think of them as an aggregate constant.
Very well put.
I'll confess to being an apostate from Python myself, but this is not
really a Python thing. Even C89 has constant arrays (ie tuples) and
structures (ie aggregate constants).
The main reason why aggregate constants would be nice to have in
Lua is that more lurking bugs can be caught at compile time.

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