Grammar question about ArrowFormalParameters

2014-11-12 Thread Cyrus Najmabadi
Hey ES6ers, I'm currently implementing some of the ES6 support for the next version of TypeScript. The part I'm looking at right now is generators and yield expressions. So far we feel fairly comfortable with the grammar and understand the implications of the [Yield] and

RE: Grammar question about ArrowFormalParameters

2014-11-13 Thread Cyrus Najmabadi
: Allen Wirfs-Brock [mailto:al...@wirfs-brock.com] Sent: Thursday, November 13, 2014 3:57 PM To: Cyrus Najmabadi Cc: Jason Freeman; es-discuss list Subject: Re: Grammar question about ArrowFormalParameters On Nov 13, 2014, at 3:21 PM, Cyrus Najmabadi wrote: Hey Allen, We have a followup

RE: Grammar question about ArrowFormalParameters

2014-11-13 Thread Cyrus Najmabadi
, 2014 7:10 PM To: Cyrus Najmabadi; Allen Wirfs-Brock Cc: es-discuss list Subject: RE: Grammar question about ArrowFormalParameters Thanks Allen for answering all of our questions. I have a theory that I wanted to run by you. It seems that the Yield and GeneratorParameter flags as a pair have only

RE: Grammar question about ArrowFormalParameters

2014-11-14 Thread Cyrus Najmabadi
Perfect. -- Cyrus From: Allen Wirfs-Brock [mailto:al...@wirfs-brock.com] Sent: Friday, November 14, 2014 9:21 AM To: Cyrus Najmabadi Cc: Jason Freeman; es-discuss list Subject: Re: Grammar question about ArrowFormalParameters On Nov 13, 2014, at 7:53 PM, Cyrus Najmabadi wrote

Question about Symbols and GlobalSymbolRegistry

2015-01-21 Thread Cyrus Najmabadi
Hi, I am reading the Symbol section of the ES6 spec (19.4), and my understanding is that calling the Symbol constructor does *not* add an entry to the GlobalSymbolRegistry. Is that correct? For example: var s1 = Symbol(foo); var s2 = Symbol.for(foo); In this example, s1 and s2 would be two

RE: ES6 grammar for for-loops

2015-02-17 Thread Cyrus Najmabadi
Ok. Thanks for confirming our read of the grammar. Is this shown on any breaking changes list anywhere? Thanks! -- Cyrus From: Leon Arnott [mailto:leonarn...@gmail.com] Sent: Tuesday, February 17, 2015 5:04 AM To: Cyrus Najmabadi Cc: es-discuss Subject: Re: ES6 grammar for for-loops

ES6 grammar for for-loops

2015-02-17 Thread Cyrus Najmabadi
Hey ES-discuss, Hi, For the following code: for (var i = 0 in {}) { } We are trying to figure out what grammar productions allow the left hand side of a for-in statement to have an initializer. I notice that in the ES5 spec, the following productions can get you there: IterationStatement :

RE: Question about Symbols and GlobalSymbolRegistry

2015-01-27 Thread Cyrus Najmabadi
...@gmail.com] Sent: Wednesday, January 21, 2015 5:16 PM To: Cyrus Najmabadi Cc: Jason Freeman; es-discuss Subject: Re: Question about Symbols and GlobalSymbolRegistry Am I understanding correctly? Yes. The argument to the Symbol constructor is just a descriptive string