[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: '__iter', yet again!
- From: Cosmin Apreutesei <cosmin.apreutesei@...>
- Date: Wed, 16 Dec 2009 22:08:29 +0200
> E.g.:
>
> t = { n = select( '#', ... ), ... }
>
> f( unpack( t, 1, t.n ) )
>
> And full symmetry was achieved.
>
> This is even more important if some of your arguments could legitimately be nils, e.g.:
>
> f( 'foo', nil, 'bar', nil )
That n is exactly what I would've scrapped. That, and the
differentiation between an argument not given and a nil one,
especially since select('#',...) is the only one surfacing it.
- References:
- Re: '__iter', yet again!, Jerome Vuarand
- Re: '__iter', yet again!, Luiz Henrique de Figueiredo
- Re: '__iter', yet again!, steve donovan
- Re: '__iter', yet again!, Javier Guerra
- Re: '__iter', yet again!, Mark Hamburg
- Re: '__iter', yet again!, Cosmin Apreutesei
- Re: '__iter', yet again!, Petite Abeille