02:37 | <sachag> | I noticed TC39 is in Tokyo, feel free to ping me if any one of you come through Kyoto, or want info about the area! |
18:55 | <sirisian> | 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? |