Skip to content

Instantly share code, notes, and snippets.

@rauschma
Last active October 19, 2022 13:53
Show Gist options
  • Save rauschma/fded5ce0a662e3ec6daef5738e416113 to your computer and use it in GitHub Desktop.
Save rauschma/fded5ce0a662e3ec6daef5738e416113 to your computer and use it in GitHub Desktop.
@rauschma
Copy link
Author

Thanks @hemanth & @allenwb!

@arv
Copy link

arv commented Oct 15, 2022

Traceur had an experimental feature called annotations which was contributed by the Angular team.

It had the same syntax as decorators but didn't change the semantics of the code. Instead it added meta data to objects that could later be inspected and used for whatever one wanted.

Initial commit:

google/traceur-compiler@67429a9

@rauschma
Copy link
Author

Thanks @arv! I’ve mentioned Traceur (fond memories of ES6 times!) here: https://2ality.com/2022/10/javascript-decorators.html#history-of-decorators

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment