[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Scripting language takes a silicon turn
- From: "mnewberry" <mnewberry@...>
- Date: Wed, 25 Jan 2006 17:36:09 -0700
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 Wed, 25 Jan 2006 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$$b$1" |$$ ,` ,$$"
> ``' $$ ```"```'" `"` `""` ""`
> ,P` "As a general rule,don't solve puzzles that
> open portals to Hell"'
- References:
- Scripting language takes a silicon turn, Vijay Aswadhati
- Re: Scripting language takes a silicon turn, Chris Marrin
- Re: Scripting language takes a silicon turn, Keith Wiles
- Re: Scripting language takes a silicon turn, Alen Ladavac
- Re: Scripting language takes a silicon turn, mnewberry
- Re: Scripting language takes a silicon turn, Tom Reahard
- Re: Scripting language takes a silicon turn, Brian Weed
- Re: Scripting language takes a silicon turn, Walter Cruz
- Re: Scripting language takes a silicon turn, Ben Sunshine-Hill
- Re: Scripting language takes a silicon turn, Walter Cruz
- Re: Scripting language takes a silicon turn, LEGO
- Re: Scripting language takes a silicon turn, Chris Marrin
- Re: Scripting language takes a silicon turn, Alen Ladavac
- Re: Scripting language takes a silicon turn, Chris Marrin