❔ Return in the middle of a method

Is it ok?
I think that it improves readability and performance, but a professor I know argues that it makes it harder to determine the state of a program and is therefore bad practice.
Was this page helpful?