lua-users home
lua-l archive

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


Rici Lake wrote:
if (a < 0) { ... } else if (a > 0) { ... } else { ... }
if a < 0 then ... elseif a > 0 then ... else ... end

Advantage: Lua, 3 fewer keystrokes

And in both cases, the Lua was much easier to type; far fewer uses of the shift key.

Or the Alt Gr key, which is even more inconvenient, for those of us with non Qwerty keyboards. To have accented char handy, at places familiar to former typewriter users, most of the C special chars (ie. ~#{[|\^]} plus ` and @) are accessible only with this special key (equivalent to Ctrl+Alt).

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --