4 ms·
It's definitely nice to see the return at the beginning of the line -- makes the code easier to scan. And anytime there's code after a return, it had better be
by shardling 14y ago
It's definitely nice to see the return at the beginning of the line -- makes the code easier to scan.
And anytime there's code after a return, it had better be connected to a conditional. :)
- nemetroid 14y agoThose are good points. I'd probably make it multi-line: if badness throw 'error' unless goodness return null