01:06
<littledan>
This is probably obvious, but in the decorator proposal if I have class A { @f a = 1; } it's not possible to access the initial value 1 without creating an instance? Is that more a reflection feature for later? Was mulling over how to turn a class with annotations into a JSON object (including their initial/default values) without creating an instance. I'm reminded of a Java project I saw before that extracted defaults to then create JSON structures that were fed to a UI. I could do class A { @f(1) a = 1; }. addInitializer runs for the instance. Something like an addDefinitionInitializer would maybe be what I'd expect or is that too complex if it's like a function call?
The thing is, the initializer can refer to this, which (for a subclass) can be based on things like constructor params. So I think passing an argument to the constructor is the way to go.
01:24
<sirisian>
That is a really solid point. I was too focused on constants. Forgot you can use just do b = this.a * 2; and other things.
15:12
<Jùnliàng Huáng>
Is the behaviour of the regex /\p{ASCII}/iv supposed to be changed by https://github.com/tc39/proposal-regexp-v-flag/issues/30? Specifically, should /\p{ASCII}/iv.test("\u017F") returns false given that /\p{ASCII}/iu.test("\u017F") returns true? Reading the spec I figured the input \u017F should be folded to s by the Canonicalize in the character set matcher, and therefore should match \p{ASCII} . But both V8 and JSC reject it.