Replies: 2 comments 6 replies
-
Hey @gvolpe, really enjoying the book so far! I have a question regarding the Is there a specific reason that you're using an |
Beta Was this translation helpful? Give feedback.
-
Hi @kyri-petrou , When I first wrote that code, there was a slight difference in the generated byte code that made one box and the other not, IIRC. I think that has changed in recent versions of Scala 3, so probably using Either way, that's code that should belong in a library, given the lack of support for newtypes in Scala 3. I hope we get something equivalent to |
Beta Was this translation helpful? Give feedback.
-
Chapter 4: Functional programming in Scala 3
Beta Was this translation helpful? Give feedback.
All reactions