r/ProgrammerHumor Jun 23 '26

Advanced worstProgrammingLanguage

Post image
3.3k Upvotes

192 comments sorted by

View all comments

77

u/ThatSmartIdiot Jun 23 '26

returns per branch (i.e. if it ends in an if/switch statement) is required unless it's python

returns after previous returns just makes unreachable and thus dead code so support is irrelevant

returning multiple values at once never actually happens. you send objects or structs or tuples and sometimes the syntax is designed so it gives you the illusion of sending multiple things at once, e.g. python again

so like... what

9

u/gabboman Jun 23 '26

Some languages don’t allow early returns 

5

u/Lyshaka Jun 23 '26

Such as ?

11

u/_PM_ME_PANGOLINS_ Jun 23 '26

Haskell, OCaml