[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Expression syntax
- From: Reuben Thomas <rrt1001@...>
- Date: Mon, 16 Oct 2000 01:05:00 +0100 (BST)
> Is it that difficult to remember that there are 3 ways to call a function
> ('foo(..)', 'foo "string"', and 'foo {table}')? Ok, always passing a table
> would be nice, simple, and _slow_.
The Lua compiler is quite capable of optimising single-argument tables in
function passing, I'm sure (anyway, with my syntax, you'd have to pass a
literal table as foo {{..}}). But you're right, I don't want to get rid of
the constructor syntax.
I suppose really I just don't like the string special case.
--
http://sc3d.org/rrt/ | certain, a. insufficiently analysed