lua-users home
lua-l archive

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


I don't mind the < too much, but you'd have to make "(<" a token,
otherwise, the grammar would be ambiguous. This means you couldn't put
spaces between the opening parenthese and the less than sign.

-- Pierre-Yves



On Tue, Nov 23, 2010 at 18:26, Joseph Manning <manning@cs.ucc.ie> wrote:
> On 2010-Nov-23 (Tue) at 18:11 (+0100), Axel Kittenberger wrote:
>
>>> Just playing around, how do you like these, all of the same grammar,
>>> different cases:
>
> Dear Axel,
>
>   Not bad.  Although I'd prefer  =>  over  =  for denoting "return".
>
>   But ... OUCH! ... surely an empty parameter list should be
>   denoted by  <>  rather than just  <  which, IMO, looks grotesque!
>
>   Thus, using your first and fifth examples,
>
>      ( <> = nil )
>
>   and
>
>      ( <> if upvalue then print "yes" end )
>
> Joseph
>
> ------------------------------------------------------------------------
> Joseph Manning / Computer Science / UCC Cork Ireland / manning@cs.ucc.ie
> ------------------------------------------------------------------------
>
>