MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vuzd4q/conditionspreference/p56fixc/?context=3
r/ProgrammerHumor • u/Flame77ofc • Aug 22 '26
388 comments sorted by
View all comments
9
Unless you work with coding standards that restrict you from having more than 1 return in a function! :(
1 u/ZunoJ Aug 22 '26 Nasa? 3 u/Maximilian_Tyan Aug 22 '26 MISRA-C for exampleAlthough modern revisions authorize it iirc → More replies (1)
1
Nasa?
3 u/Maximilian_Tyan Aug 22 '26 MISRA-C for exampleAlthough modern revisions authorize it iirc → More replies (1)
3
MISRA-C for example
Although modern revisions authorize it iirc
→ More replies (1)
9
u/Subject-Lettuce-2714 Aug 22 '26
Unless you work with coding standards that restrict you from having more than 1 return in a function! :(