lua-users home
lua-l archive

Re: A bit of food for thought, hopefully. Was Re: Ambiguous Syntax

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


>That doesn't work because + is not unambiguously unary. So:
>
> a = f
> +(b or c)(g)
>
>is still ambiguous. In any event, I find the use of + as an identity
>operator a bit irritating, for some reason. Maybe it's my anti-Perl bias. I
>prefer + to be unambiguously binary.
That's what it is in Lua: there's no unary +. There's a unary -, though.
--lhf

AltStyle によって変換されたページ (->オリジナル) /