lua-users home
lua-l archive

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


On Fri, Aug 14, 2009 at 4:12 AM, Peter Cawley wrote:
> If this syntax were to
> be adopted, it would carry several restrictions:
> * At any given scope level (i.e at any block, excluding its "child"
> blocks) there can exist a maximum of one tuple variable at any one
> time. .....
> similar restrictions to ensure that a TUPLE is always matched
> by a DETUPLE, that tuples are destroyed in reserve order to that in
> which they were created, and that a tuple is not used for anything
> except DETUPLE.

On Mon, Aug 17, 2009 at 6:44 PM, TNHarris wrote:
> I'd be preferential to the syntax:
>
>  print("begin", f)
>  ... = f(...)
>  print("end", f)
>  return ...

Having a single writable list "..." per function may satisfy the most
common case.