I am still primarily a Scala 2 developer, so I’ll continue to lean into sealed traits in these examples. Scala 3 enum covers many of the same ideas, and in a syntax closer to Rust’s!
I am still primarily a Scala 2 developer, so I’ll continue to lean into sealed traits in these examples. Scala 3 enum covers many of the same ideas, and in a syntax closer to Rust’s!