adamsol / Pyxell

Multi-paradigm programming language compiled to C++, written in Python.
MIT License
54 stars 6 forks source link

Support for decorators #5

Open sirex opened 3 years ago

sirex commented 3 years ago

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 commented 3 years ago

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.