Re: return when desugaring to closures

2008-09-02 Thread Lex Spoon
On Sun, Aug 24, 2008 at 3:17 AM, Brendan Eich [EMAIL PROTECTED] wrote: First, let's settle the hash over whether any desugaring without extensions such as return-to-label, reformed lexical scope, tamed this, banished arguments, etc. etc., trumps adding a new binding form, to wit: let as block

Re: return when desugaring to closures

2008-09-03 Thread Lex Spoon
On Tue, Sep 2, 2008 at 5:48 PM, Garrett Smith [EMAIL PROTECTED] wrote: On Tue, Sep 2, 2008 at 2:16 PM, Lex Spoon [EMAIL PROTECTED] wrote: On Sun, Aug 24, 2008 at 3:17 AM, Brendan Eich [EMAIL PROTECTED] wrote: First, let's settle the hash over whether any desugaring without extensions

Re: return when desugaring to closures

2008-10-09 Thread Lex Spoon
On Thu, Oct 9, 2008 at 5:31 PM, Brendan Eich [EMAIL PROTECTED] wrote: JS has break from labeled statement, and continue to labeled loop bottom, a la Java. These look trouble-free to me. Let me know if you see a hard case. Thanks, My question was whether the semantics of break and continue

Re: Semantics and abstract syntax of lambdas

2008-12-17 Thread Lex Spoon
On Mon, Dec 8, 2008 at 4:08 AM, Yuh-Ruey Chen maian...@gmail.com wrote: Jon Zeppieri wrote: So, unless people want to expand the expression grammar significantly, I think the expression body is a nonstarter. How feasible would it be to make JS a pure expression language? That is, can the

Re: Allen's lambda syntax proposal

2008-12-17 Thread Lex Spoon
On Mon, Dec 1, 2008 at 3:19 PM, Allen Wirfs-Brock allen.wirfs-br...@microsoft.com wrote: Just to clarify some speculation, the syntax I proposed ({||}) was solely inspired by Smalltalk and tempered by the parsing realities of a C-like syntax. Any similarities to Ruby constructs are probably

Re: Allen's lambda syntax proposal

2008-12-18 Thread Lex Spoon
On Wed, Dec 17, 2008 at 9:53 PM, Yuh-Ruey Chen maian...@gmail.com wrote: Lex Spoon wrote: On this list, the = form has so far been dismissed due to parsing concerns. If that's the only reason, let me try and allay that worry and put that horse back in the race. Scala also has a comma

Re: Semantics and abstract syntax of lambdas

2008-12-18 Thread Lex Spoon
On Wed, Dec 17, 2008 at 9:42 PM, Yuh-Ruey Chen maian...@gmail.com wrote: Unfortunately, { in expression context is taken by the object literal. However, I think {{ would be feasible. That is, if the parser is in the expression context, if it encounters two '{' tokens in a row, it could treat