On Oct 13, 2011, at 12:07 PM, Brendan Eich wrote:
> On Oct 13, 2011, at 3:00 PM, Allen Wirfs-Brock wrote:
>
>> On Oct 13, 2011, at 8:36 AM, Brendan Eich wrote:
>>
>>
>> This is something that I'm been meaning to bring up:
>>
>> var x = {
>> #*foo() {yield }
>
> It seems to me the order should be *# since with generator functions, the *
> goes after the function keyword, with best style favoring no space to left of
> *, one space to right.
>
> Also, in HoMD, I made # an identifier prefix.
And also:
var y = {
get #bar() {},
set #[3+4] (v) {}
};
It seems to me that by placing the # always next to the name is associating it
with the wrong thing. It isn't property name that is being frozen, it is the
property definition. I would expect instead to see:
var y = {
#get bar() {},
#set [3+4] (v) {}
};
Allen
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss