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

None of that sounds particularly hard, complex, or tricky without decorators though.

Like, I get they can be used for stuff but why are they a better option?

So far - based on the responses here - it appears to be syntax for syntax sake and no practical benefit.



It's just sugar but it's less code and I find it easy to read at least in go.


It’s not really less code though. It’s about the same but with an syntax that obfuscates where the logic happens.

Terse at the usage point yes, but it swaps clarity for brevity. A sometimes useful trade off to be sure but... not sure I’ve seen any demonstration of benefits here.




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

Search: