@Felthry They're syntactic sugar, these are equivalent:
@decorator
def func():
whatever
def func():
whatever
func = decorator(func)
@Felthry Hm, are you asking for a better explanation, or are you saying you understand what they do and you just don't get why this is a common enough thing to need its own syntax?
@Trinket What I meant was that I didn't get why it was a common enough thing to need its own syntax, but someone else explained that so I get it a bit mroe now!
@Felthry Oh hahah, yeah in practice I don't think I've ever actually written my own, the only ones I use regularly are @property and Pyramid's @view_config
@Trinket @Felthry Sorry, we switched right before you said this and I think Felthry's already asleep. I'll try to remind it to answer this tomorrow!