lua-users home
lua-l archive

Re: Scripting language takes a silicon turn

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


I guess I don't see the problem with {} between the reserved keywords if, 
else, and end becuase it would seem that the parser would always have a 
context to work with. The use of "then" doesn't really bother me anyway.
But I really would like to have != and // as syntactic sugar for ~= and --
Michael
On 2006年1月25日 16:25:32 -0800, Chris Marrin wrote
> Alen Ladavac wrote:
> > From: "Chris Marrin" <chris@marrin.com>
> > 
> >>- the required 'then' keyword
> > 
> > 
> > Yes indeed. That's a pain too. Did anyone ever succeed replacing then-end
> > and do-end constructs to use curly braced blocks like C, i.e. "{" 
and "}" ?
> 
> Adding support for braces in place of the current block structuring 
> would be difficult because of the clash with the use of brace for 
> defining a table. Javascript, for instance, has a nasty ambiguity 
> because of this.
> 
> And personally I find the Lua block syntax to be tolerable.
> 
> -- 
> 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 によって変換されたページ (->オリジナル) /