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

The major benefit I see to the decorator syntax is that there is not an extra distinction about functions. So currently we may have normal functions and generator functions. The latter are mostly functions which just return an iterator. Do we have to make a second distinction?

Most of this is just "feeling". But good Python makes me feel good, so I sort of expect that from new features if I am to vote them up.

I might like "codef" more than "async def", if there absolutely have to be first-class coroutines.



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

Search: