4 ms·
Oh please. Decorators will never beat plain old functions when it comes to flexibility.
by andreineculau 9y ago
Oh please. Decorators will never beat plain old functions when it comes to flexibility.
- rhencke 9y agoC will never beat plain old assembly when it comes to flexibility.
- hajile 9y agoHardly a fair comparison. Decorators exist in Python and other languages primarily because they either don't have lambdas or have bad ones. JS doesn't suffer from those problems, so the mental overhead of the additional syntax has a much lower payoff (and one that I believe isn't worth the trouble).
- deleted 9y ago[deleted]