Re:Anti-If: The missing patterns (2016)
by recursive on Wednesday June 27, 2018 @11:52AM
(#17409158)
I don't think there is anything virtuous about a single return in languages that have catch, finally, and garbage collection.
[ Parent
| on HN ]
I think it’s a judgement call: I like clearly indicating when there’s always a single output path but wouldn’t use the single return style in that cache example if it involved an extra lookup operation for a value which is already known.