Nice little low level opinion question for all the experienced coders who have worked with a lot of other programmers in their careers...
I've been writing a certain syntax with conditionals and loops for quite a while and I've found now that not many people do it. Let me show you what it looks like and tell me if you personally have a problem with it as a programmer. It's perfectly legal, however it may seem slightly obscure.I recently had a teacher tell me that "else while" isn't an actual control structure and I explained I understood, I just write it like that out of habit. Anyone think it's wrong and I should change it? It really is the simplest of code and I don't personally see anything wrong with it. In fact, it seems more logical to me to group it that way.Code:if(/*condition*/) // Do something else while(/*NOT condition*/) { // Do some other stuff }