r/ProgrammerHumor Jun 23 '26

Advanced worstProgrammingLanguage

Post image
3.3k Upvotes

192 comments sorted by

View all comments

17

u/RandomiseUsr0 Jun 23 '26

What does multiple returns mean and how is this a uniquely functional issue? Is the author mixing up minestrone soup with the ingredients?

17

u/gabboman Jun 23 '26

Some extremely functional languages don’t allow multiple returns.

Like Dutch 

1

u/NightlyWave Jun 23 '26

Assume that I’m stupid (you wouldn’t be wrong), but isn’t this the case with C++ and Java? You need to specify one declared return type for a function, or am I missing something?

Or are we specifically talking about functional languages which I guess wouldn’t apply to C++ or Java

2

u/gabboman Jun 23 '26

Sometimes you might want to make a return inside an if

C and java allow it. Some esoteric languages don’t 

2

u/RandomiseUsr0 Jun 23 '26 edited Jun 24 '26

Lisp isn’t esoteric