Re: Putting `global` reference in specs

2015-04-17 Thread Mameri, Fred (HBO)
At some point in the past, I proposed that we introduce syntax for that. In my proposal, prefixing an identifier with a . would create an unambiguous reference to the global version of that variable. For example: ```js var x; function f(x) { x; // local .x; // global } ``` This is an

Date.prototype.toISOString and fractional parts

2014-08-05 Thread Mameri, Fred (HBO)
According to the spec, the toISOString is currently defined to return a string in the format -MM-DDTHH:mm:ss.sssZ. Specifically, there's a 3-digit fractional part introduced by a . (that's the .sss above) appended to the seconds. It is my understanding of the ISO8601 spec that fractional

Re: Object copy

2014-06-10 Thread Mameri, Fred (HBO)
And maybe there should be a Object.move for value types... From: Frankie Bagnardi f.bagna...@gmail.commailto:f.bagna...@gmail.com Date: Tuesday, June 10, 2014 at 2:47 PM To: Alex Kocharin a...@kocharin.rumailto:a...@kocharin.ru Cc: es-discuss@mozilla.orgmailto:es-discuss@mozilla.org

Re: A bit confused by B.3.2 - Web Legacy Compatibility for Block-Level Function Declarations

2014-06-05 Thread Mameri, Fred (HBO)
We don't need an identifier for global. Much like with the :: operator in C++, a member expression starting with a . would always refer to the global object. So if you want to refer to member foo in the global object, .foo would be unambiguous. I feel like it's a simple, yet elegant solution.

Re: Bytecode

2014-05-16 Thread Mameri, Fred (HBO)
I kind of feel that even if such a bytecode existed, it should be immaterial to the design of ES. What I'm trying to say is that probably a better place for this discussion is at the web standards level. This decision can be completely outside of the design of any individual language, provided

Re: ToPropertyDescriptor, [[HasProperty]], [[HasOwnProperty]]

2014-05-08 Thread Mameri, Fred (HBO)
I agree with you that this would be a much better design, but it would break backwards compatibility with ES5, no? Minor nitpick: I guess you mean to say that ToPropertyDescriptor should use the abstract operation HasOwnProperty, not [[HasOwnProperty]]... Fred From: John-David Dalton