3 ms·
Early returns only work well in untyped, statement oriented languages, like JavaScript. I'd rather change the language.
by bad_user 9y ago
Early returns only work well in untyped, statement oriented languages, like JavaScript.
I'd rather change the language.
- SideburnsOfDoom 9y agoEarly returns work fine in Java and C# and Rust too, so I don't think that it's anything to do with dynamic typing, rather it's about how removing the burden of resource tracking from the programmer makes early return more viable.