Why can it be bad to have multiple return points in a function? It is commonly said that "there should only be one return in a function." In this video, we will analyze the reasons behind this mantra and see why, to this day, it lacks foundation in most scenarios :)
Here is the link to the StackOverflow post mentioned in the video to delve deeper into the topic: "Where did the notion of “one return only” come from?." Thanks to Marc Cornellà for bringing this topic to light in a comment on the video about guard clauses, a video I recommend watching if you haven't seen it yet :D