User:Colby Russell/Static initializers: Difference between revisions
m
fix list formatting
(ordering concerns for static initializers) |
m (fix list formatting) |
||
Line 42:
NB: There are also ordering concerns, similar to those we ran into for <code>extends</code>, based on TC39's (IMO extremely silly and unnecessary) decision to make class hoisting differ from the way function hoisting works. This means we have some difficult choices:
Of these choices, I like (3) the least, because it also compromises our principle of "you can keep all the rules in your head, and whatever the compiler does you could do yourself by hand if you wanted to" and it leads to code that isn't [[top-down]]. And I don't especially look forward to having to implement a satisfiability solver even in the compiler.
|