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

It only feels wrong because you think of them as decorators without arguments and decorators with arguments: they really are decorators stored in variables and decorators computed by function calls. :)


That's exactly how I see it. One could have also, for example, lists of decorators,

    @a[1]
    def f(x):
        ...




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

Search: