6 ms·
At first I thought this article was talking about returning just one value from a function, as opposed to say, an object or a tuple (e.g. things that feel and l
by sombremesa 5y ago
At first I thought this article was talking about returning just one value from a function, as opposed to say, an object or a tuple (e.g. things that feel and look great with ES6 destructuring).
Alas, the question actually describes a practice I've never seen nor heard of. Maybe I'm just too young.
- bob1029 5y agoSome of these ideologies are probably less applicable as your abstraction level increases. When you are writing low-level ASM, notions of return/entry points are critical. When you are writing C#/Java/Rust/et. al., these considerations are below your current level of abstraction and hurt more than help. Whether you use one or many return statements from a method written in a high level language would depend wholly on the nature of that method's implementation and context of use.