I don't trust programmers who knock #define | goto.I think you are |Idiot, SO?
On 02/10/2021 03:11, rbowman wrote:
On 10/01/2021 10:46 AM, Jeff-Relf.Me@. wrote:
I don't trust programmers who knock #define | goto.
Each has it's uses. I'm amused when the evil goto is covered with
syntactic sugar like try {} catch{} or convoluted blocks of code. Being
an old assembler guy I know there's a JMP luring in the bushes.
Yup!
I think the purists were scarred in their youth by computed goto.
I think that they simply got conned by compSci twits into think that
because block structure is arguably better, gotos were spawn of the devil
if(something==something else) //CMP, A,B
{ // JNE ELSE1
} //JMP ENDIF1, *the hidden goto*
else { //ELSE1:
}
// ENDIF1:
CompScis want to think in terms of elegant structure, software engineers
want to write portable machine code to make best use of the processor.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 12:56:23 |
Calls: | 10,389 |
Calls today: | 4 |
Files: | 14,061 |
Messages: | 6,416,880 |
Posted today: | 1 |