Re: Popularity contest
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Popularity contest
- From: steve donovan <steve.j.donovan@...>
- Date: 2011年9月27日 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.