4 ms·
I don't think there is anything virtuous about a single return in languages that have catch, finally, and garbage collection.
by recursive 8y ago
I don't think there is anything virtuous about a single return in languages that have catch, finally, and garbage collection.
- acdha 8y agoI 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.