Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

"So ... why bother with adding a feature to the language when the language as it already exists can do it in one easily-comprehended line of six tokens?"

The decorator syntax is easier to read. It's at the top of the function where the arguments list and docstring are. Yes, there are tradeoffs when introducing new syntax, but decorators are definitely worth it.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: