3 ms·
Yes and no. "Yes" because JS decorators are indeed very local - they apply to what they decorate. "No" because JS decorators are still imperative. Essentially w
by mraleph 9y ago
Yes 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.