Sure, but I don't see your justification as to why they are "bad code" to begin with. Merely stating an opinion does not make it fact.Originally Posted by taazz
But they are not odd: they are syntactic sugar that express the intention more clearly and succinctly. That they used to have a part in optimisation is secondary and hence a red herring where programming language design is concerned.Originally Posted by taazz
No, it isn't: I have an old school mate who kept stumbling with simple expressions such as i = i + 1 because it simply does not make sense in algebra: i is never equal to i + 1. In other words, the reader has to understand that "=" means "assign", and if so, it is not a stretch to understand that "+=" means "add then assign".Originally Posted by taazz
Hmm... but if it is a function rather than a macro, how did you get away with not passing a pointer?Originally Posted by taazz