Today I realised that because `return` is an expre...
# random
s
Today I realised that because
return
is an expression (of type
Nothing
), you can
return return
.
Copy code
fun madness() {
    return return return return return return return return return return
}
lol 8
😂 17
😄 14
K 11
k
Copy code
fun moreMadness() {
    throw throw throw Throwable(return, return)
}
👌 8
h
Or as they say in French: si ton tonton tond ton tonton, ton tonton tondu sera.
🪒 1
s
🎶 To the tune of "row, row, row your boat":
Copy code
fun kotlinThemeSong() {
    throw throw throw return 
    throw return return
    throw return return return
    throw return return
}
🎶 9
🏆 1
👏 10
t
imagined in the voice of Microsoft David