3 ms·
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?
by abritinthebay 9y ago
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.
- mmargerum 9y agoIt's just sugar but it's less code and I find it easy to read at least in go.
- abritinthebay 9y agoIt’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.