Core concept

if x > 0 then
  println("positive")
else
  println("other")
Advertisement

How it works

Controversial. Mixed feelings in community.

Advertisement

Trade-offs + gotchas

New Scala 3 code. Personal preference.