I use eclipse IDE for java developers
EDIT: i should be referring only to eclispe IDE as other compilers for different languages only give warings and can handle the code
I understand what will cause this error(unreachable code), but why does it exist as an error not a warning? What is it in the compiler that can't handle unreachable code?
Unreachable code: error or warning? I have seen this question but it doesn't answer why a compiler can't handle unreachable and why it has to give an error.
From what i think surely it can compile it and just never reach the code in the compiled program but obviously compilers (i use eclipse for java) don't allow it.