lua-users home
lua-l archive

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


On 2012-11-14 11:11 AM, "Philippe Lhoste" <PhiLho@gmx.net> wrote:
>
> On 14/11/2012 15:00, Marc Lepage wrote:
>>
>> I support bit operations and div/mod.
>> // reminds me of comments.
>
>
> Not on Lua, of course... ;-)
> // is already used in some languages for integer division. At least Visual Basic, IIRC...
> Of course, not in C-like languages, for the reason stated by Marc. :-)
>
> ÷ is nice, but hard to type. We have already some users grumbling against ~...
> Scala made the choice to allow Unicode operators, but they can be problematic on some old systems, some editors, etc.
> Having ÷ in an _expression_ might look odd... (and might look different in non-ISO8859-1 code pages!).
>
> --
> Philippe Lhoste
> --  (near) Paris -- France
> --  http://Phi.Lho.free.fr
> --  --  --  --  --  --  --  --  --  --  --  --  --  --
>
>

What about ./ or /. ? It's not ugly and the presence of a decimal point makes sense to me somehow.