[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Popularity contest
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 27 Sep 2011 12:46:53 +0200
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.