Hacker News new | past | comments | ask | show | jobs | submit login

"x = @y" will call y.__dec__. "@foo" behind a function will call foo.__dec__ with the function as an argument, meaning decoration behaviour can then be altered or be even completely different for other classes.

As I said, there is DSL potential. As it stands, it's just something that is not possible.




The core python devs don't really care about DSLs.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: