Re:Fusion.js: A Plugin-Based Universal Web Framework
by xanderjanz on Wednesday August 01, 2018 @07:23PM
(#17667970)
We have high order functions in JS. Which are similar to decorators.
[ Parent
| on HN ]
Re:Fusion.js: A Plugin-Based Universal Web Framework
by sbjs on Wednesday August 01, 2018 @07:30PM
(#17668011)
Similar, but harder to use safely and correctly in class methods using the new class syntax. There's more surface area for typos and other mismatch errors since you have to type the method names twice. See: https://mobx.js.org/best/decorators.html