adamsol / Pyxell

Multi-paradigm programming language compiled to C++, written in Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for decorators

sirex opened this issue · comments

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?

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.