lua-users home
lua-l archive

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


On Tue, Sep 27, 2011 at 12:36 PM, Dirk Laurie <dpl@sun.ac.za> wrote:
>   1. tuples, i.e. fully internalized immutable lists.
>         assert( (1,2,3) == (1,2,3) )

I grant you they are useful, but such functionality can be written in
plain Lua; I use a tuple object originally by David Manura for
structuring tests in Penlight:

asserteq(T(("hello"):find("hell")),T(1,4))

>   4. lpeg, lfs to become standard libraries

Nothing is standard in the Lua universe ;)

>   6. `for k in t do` is OK if non-function 't' has __iter metamethod

I've always liked this one.

steve d.