DEV Community

Discussion on: 100 Languages Speedrun: Episode 05: Kotlin

Collapse
 
theonlytails profile image
TheOnlyTails • Edited

One thing I would note is how Kotlin has a lot of features that make for very idiomatic code.
For example, here's how I would rewrite that Fibonacci function:

fun fib(n: Int) = if (n < 3) 1 else fib(n - 1) + fib(n - 2)
Enter fullscreen mode Exit fullscreen mode

Reading through this, it looks like an awesome series! This is really cool!