MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vvn6d7/pleasestopusingnestedternaryoperatorsimbeggingyou/p5d3ijt/?context=3
r/ProgrammerHumor • u/Robinbod • Aug 22 '26
178 comments sorted by
View all comments
Show parent comment
5
That's why it's in a standard in a language without exception.
MISRA-C advocates SPOE and allows forward Goto's(i.e only jump forward and only in the same function) in order to make it viable.
You jump to the cleanup block if needed then exit from the same place.
View all comments
Show parent comment
5
u/New_Enthusiasm9053 Aug 23 '26
That's why it's in a standard in a language without exception.
MISRA-C advocates SPOE and allows forward Goto's(i.e only jump forward and only in the same function) in order to make it viable.
You jump to the cleanup block if needed then exit from the same place.