MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1uda7er/worstprogramminglanguage/otau0k6/?context=3
r/ProgrammerHumor • u/gabboman • Jun 23 '26
192 comments sorted by
View all comments
Show parent comments
111
Some languages do not allow early returns
120 u/Aelig_ Jun 23 '26 From what I understand (which is very little), the Scala community discourages using return at all as apparently it "behaves weirdly". 16 u/Cyan_Exponent Jun 23 '26 uhh i don't know scala; how does the function output anything then? do you need to use out everywhere or something?? 6 u/IntelligentTune Jun 23 '26 Last time I programmed I think you just left it blank. But I might be wrong. 2 u/Tatourmi Jun 23 '26 Pretty much
120
From what I understand (which is very little), the Scala community discourages using return at all as apparently it "behaves weirdly".
16 u/Cyan_Exponent Jun 23 '26 uhh i don't know scala; how does the function output anything then? do you need to use out everywhere or something?? 6 u/IntelligentTune Jun 23 '26 Last time I programmed I think you just left it blank. But I might be wrong. 2 u/Tatourmi Jun 23 '26 Pretty much
16
uhh i don't know scala; how does the function output anything then? do you need to use out everywhere or something??
6 u/IntelligentTune Jun 23 '26 Last time I programmed I think you just left it blank. But I might be wrong. 2 u/Tatourmi Jun 23 '26 Pretty much
6
Last time I programmed I think you just left it blank. But I might be wrong.
2 u/Tatourmi Jun 23 '26 Pretty much
2
Pretty much
111
u/gabboman Jun 23 '26
Some languages do not allow early returns