"lisp is so hard to read with all those parentheses; block languages are so much better"
-
"lisp is so hard to read with all those parentheses; block languages are so much better"
block languages:
-
Laxystem (Masto/Glitch)replied to sjolsen.cdda.wav last edited by
@sjolsen the duality of Kotlin, where loops don't need braces, but lambdas require them.
-
Laxystem (Masto/Glitch)replied to Laxystem (Masto/Glitch) last edited by
for (x in list) for (y in x) for (z in y) println(z)
Compared to
list.map { x ->
y.map { y ->
z.map { z ->
z.toSomething()
}
}
}.let(::println) -
sjolsen.cdda.wavreplied to Laxystem (Masto/Glitch) last edited by
@laxla oh dear
-
Laxystem (Masto/Glitch)replied to sjolsen.cdda.wav last edited by
@sjolsen ayup.
(Though, the indentations being messed up is Mastodon's fault, it's fine in real Kotlin)
Copyright © 2024 NodeBB | Contributors