lua-users home
lua-l archive

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



On Thu, Nov 12, 2009 at 12:24 PM, Stephen Kellett <lua@objmedia.demon.co.uk> wrote:
They seem proud of not having enumerations. I'd have thought the dreadful mistake of omitting them from Java (which has now added them back into the language) had been learned by now. "iota" seems to be a passing nod to the concept of monotonically increasing values (which is how most enums, but not all, work).

Hmm, enums and iota, that rings a bell, ah yes, Limbo (from Inferno):

http://www.vitanuova.com/inferno/papers/limbo.html (see section 6.2 Constant declarations)

Rather elegant!

Robby