lua-users home
lua-l archive

Re: [PROPOSAL] a new function: table.proto()

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


2010年5月4日 spir ☣ <denis.spir@gmail.com>:
> This would allow having most array/sequence methods we miss now without polluting general (associative) table.
Ah, but mostly it doesn't feel like 'pollution'. Consider this little
excerpt from a utility I'm working on:
layout {
 form = form,
 TOP = layout.down {layout.across{input,btn},5,combo},
 CENTER = scroll(text),
 BOTTOM = layout{LEFT=status1}
}
Lua's roots in data description makes this kind of flexible
declarative style possible.
steve d.

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