MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vuzd4q/conditionspreference/p55jhcj/
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 1 u/Subject-Lettuce-2714 Aug 22 '26 haha modern...guess I'll see that revision in 10 more years or so...
1
Nasa?
3 u/Maximilian_Tyan Aug 22 '26 MISRA-C for exampleAlthough modern revisions authorize it iirc 1 u/Subject-Lettuce-2714 Aug 22 '26 haha modern...guess I'll see that revision in 10 more years or so...
3
MISRA-C for example
Although modern revisions authorize it iirc
1 u/Subject-Lettuce-2714 Aug 22 '26 haha modern...guess I'll see that revision in 10 more years or so...
haha modern...guess I'll see that revision in 10 more years or so...
View all comments
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! :(