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

Support for decorators #5

Open
sirex opened this issue Nov 22, 2020 · 1 comment
Open

Support for decorators #5

sirex opened this issue Nov 22, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@sirex
Copy link

sirex commented Nov 22, 2020

I love the language design so far, especially with type annotations fixed to be in name: Type form.

But one thing, that I could not find in the docs nor in todo list, is the decorators. Do you have plans to add support for decorators?

@adamsol
Copy link
Owner

adamsol commented Nov 22, 2020

Thanks! Yes, I like decorators in Python and JS, and have been thinking of implementing them in Pyxell. Though I think it's a bit more difficult with static typing. It will probably require adding some mechanism similar to variadic templates in C++, so that it's possible to re-pass all arguments without explicit type information.

@adamsol adamsol added the enhancement New feature or request label Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants