3 ms·
Well written article! One question regarding the "More declarative replacement for dart:mirrors" chapter: Is this what typescript/js is doing, with emitting an
by Matthias247 9y ago
Well written article!
One question regarding the "More declarative replacement for dart:mirrors" chapter: Is this what typescript/js is doing, with emitting and processing metadata only for decorated types?
- mraleph 9y agoYes and no. "Yes" because JS decorators are indeed very local - they apply to what they decorate. "No" because JS decorators are still imperative. Essentially when you write @D class A { } this simply means something along the lines of: class A { } D(A) where D is an arbitrary function doing arbitrary things to A. There is nothing declarative here.