BTW the general idea goes back to Waldemar's ur-JS2/ES4:
"""
Annotated groups are useful to define several items without having to
repeat attributes for each one. For example,
class foo {
var z:Integer;
public var a;
private var a;
private function f() {}
private function g(x:Integer):Boolean {}
}
is equivalent to:
class foo {
var z:Integer;
public var a;
private {
var b;
function f() {}
function g(x:Integer):Boolean {}
}
}
"""
from
http://web.archive.org/web/20030216224101/http://www.mozilla.org/js/language/js20-2002-04/core/statements.html#directive-group.
/be
Andrea Giammarchi wrote:
Will do soon
Cheers
On Sun, Dec 14, 2014 at 6:00 PM, Rick Waldron <[email protected]
<mailto:[email protected]>> wrote:
On Sun Dec 14 2014 at 10:40:53 AM Andrea Giammarchi
<[email protected] <mailto:[email protected]>>
wrote:
as side note, I wonder why static hasn't been considered
definable as group/object
```js
class Foo {
static {
bar: 'bar',
get defaults() {
return {de:'faults'};
}
}
}
```
I like that, can you write up a proposal?
Rick
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss