Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unification of templates, functions, decorators & projections #904

Open
markweitzel opened this issue Aug 22, 2022 · 1 comment
Open

Unification of templates, functions, decorators & projections #904

markweitzel opened this issue Aug 22, 2022 · 1 comment
Labels
Milestone

Comments

@markweitzel
Copy link
Member

Templates are isomorphic with a function which takes types as arguments and returns types. The ability to use dynamic code to implement a template has been asked for in the past.

Likewise decorators are just functions which take a type and make changes to the type. This unification would enable implementing decorators purely in cadl without requiring TS.

Likely we just need to convince ourselves that we can do this in the future (i.e. have a design doc we can approve).

@nguerrera
Copy link
Contributor

See also #521

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants