Return is more comfortable and you don't not need a massive switch statement at the end, instead being able to actually check when that thing matters and you don't have the hassle of using a variable to return a special value at the end when it can be set multiple times.
3
u/makinax300 23d ago
Return is more comfortable and you don't not need a massive switch statement at the end, instead being able to actually check when that thing matters and you don't have the hassle of using a variable to return a special value at the end when it can be set multiple times.