lua-users home
lua-l archive

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


On Jan 15, 2008 10:25 AM, Philippe Lhoste <PhiLho@gmx.net> wrote:
> On 12/01/2008 00:08, Miles Bader wrote:
> > Incidentally, any syntactic reason not to allow other "parenthesis-less"
> > calls?
> >
> > E.g., you can use:  fun 'blargh'
> > sometimes I'd kinda like to be able to use:  fun 3
> > as well...
>
> Perhaps because fun 3+4 would look ambiguous and error prone? Somehow,
> the quotes *are* the delimiters of the function parameter, so they are
> no ambiguous.

Well, then what about this:

string.lower "HELLO".."WORLD"

:-)

(Note that I'm not advocating other parenthesis-less calls; I tend to
use parentheses even for string arguments, myself.)

-- Hisham