miha-x64
01/17/2017, 7:31 PMWe are talking about Lisp, right?No, about Kotlin 🙂 Many things are expressions here, e. g.
if
, when
, throw
. Thus, some people call it expression-based.
@elizarov
Consider this codeThat explains. Thank you. (and Swift uses.foo(bar = 1)
:
for named arguments; it's interesting, how they handle assignments)
@kirillrakhman
Declarations aren't expressionsOh, really, all things written out of methods are not expressions simple smile