lua-users home
lua-l archive

Re: Syntax and redundancy

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


Philippe Lhoste wrote:
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).
English Rules!!!
Seriously, most of the characters you mention are also special chars in Lua, including '#' in 5.1!
--
chris marrin ,"",ドル
chris@marrin.com b` $ ,,.
 mP b' , 1$'
 ,.` ,b` ,` :$$'
 ,|` mP ,` ,mm
 ,b" b" ,` ,mm m$$ ,m ,`P$$
 m$` ,b` .` ,mm ,'|$P ,|"1$` ,b$P ,` :1ドル
 b$` ,$: :,`` |$$ ,` $$` ,|` ,$,,ドル`"$$ .` :$|
b$| _m$`,:` :1ドル ,` ,$Pm|` ` :$,ドル..;"' |$:
P$b, _;b$$b1ドル" |$$ ,` ,$$" ``' $$
 ```"```'" `"` `""` ""` ,P`
"As a general rule,don't solve puzzles that open portals to Hell"'

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