Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sc22
· 3y ago · 0 comments
Scala 3 has enums, which can also serve as ADts:
https://docs.scala-lang.org/scala3/reference/enums/enums.htm...
Comments
[–]
da39a3ee
3y ago
Ah right, thanks. I've only used Scala 2. To what extent do Scala 3 enums give you what you want in the way of sum types? E.g. compared to Rust enums?