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.
if x > 0 then
println("positive")
else
println("other")Controversial. Mixed feelings in community.
New Scala 3 code. Personal preference.