[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Syntax and redundancy
- From: Chris Marrin <chris@...>
- Date: Tue, 30 Aug 2005 10:28:43 -0700
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$$b$1" |$$ ,` ,$$" ``' $$
```"```'" `"` `""` ""` ,P`
"As a general rule,don't solve puzzles that open portals to Hell"'