I don't know why people hate using exceptions to control flow, I do not have any concerns about it. Not the best thing to do, but with caution it does not harm anyone.
Just a curious fact, I once written a simple Uno game in Java, as an experiment, the game flow was completely controlled by exceptions, but that's a long story. I should write a blog post about it here.
The problem with exceptions is that they can lead to inconsistent states. So yeah, you can use it to control flow if you are VERY careful. But I think that almost always there is a better approach.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I don't know why people hate using exceptions to control flow, I do not have any concerns about it. Not the best thing to do, but with caution it does not harm anyone.
Just a curious fact, I once written a simple Uno game in Java, as an experiment, the game flow was completely controlled by exceptions, but that's a long story. I should write a blog post about it here.
The problem with exceptions is that they can lead to inconsistent states. So yeah, you can use it to control flow if you are VERY careful. But I think that almost always there is a better approach.