by readthenotes1 · 2y ago · 0 comments
(One exit point is a pet peeve of mine since it often makes the code a lot harder to read and think about vs exit asap)
There are pretty much no languages left today where it's even possible to violate this principle without really trying, it's not about having single a return it's about all the functions starting at the top and return statements always taking you back to the same place in the code.