Skip to content
If expression

If expression

1 min read #kotlin

One of basic things that gives me a spark in the eye is when I realise in Kotlin that:

Either branch of an if expression can be a multiline block of code surrounded by curly braces.

What does Kotlin syntax surprise you? Are you a fan of block code?