Consultant, Full Stack Dev, Game addict. Tech Lead @ MOBIKO. Loving Nodejs, Typescript and Vue. Interested in Clean Code, agile methods and Software Engineering
as you described, decorators are currently in proposal state for JavaScript (github.com/tc39/proposal-decorators) and experimental for typescript (typescriptlang.org/docs/handbook/d...). However, they are widely spread (like you mentioned: angular, react, mobx, ... - there are plenty of famous examples), so I personally think it's no question if, but only when they will arrive in ECMA standard.
Of course this is highly opinionated, but as they are so commonly used nowadays, I don't have bad feelings about using themπ
Also, depending on your configuration, it's possible that your transpiler (e.g. babel) transforms it on compile-time into standard javascript.
Cheers
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey there,
as you described, decorators are currently in proposal state for JavaScript (github.com/tc39/proposal-decorators) and experimental for typescript (typescriptlang.org/docs/handbook/d...). However, they are widely spread (like you mentioned: angular, react, mobx, ... - there are plenty of famous examples), so I personally think it's no question if, but only when they will arrive in ECMA standard.
Of course this is highly opinionated, but as they are so commonly used nowadays, I don't have bad feelings about using themπ
Also, depending on your configuration, it's possible that your transpiler (e.g. babel) transforms it on compile-time into standard javascript.
Cheers