Closed johnynek closed 9 years ago
You got me. I'm sorry for subverting good process.
I'll start using PRs again -- it definitely facilitates discussion. I think I've fallen prey to some bad habits.
Cool. PS, if it wasn't the case before, 2.10 and 2.11 support would be the only thing we need for Algebird. Twitter finally got off 2.9. :)
I added some comments to the previous pushes. Did you get them? My little iOS github client let me do it, but maybe they all got lost. :/ I had several.
Yeah, I did get them (and I think I fixed all of them except the suggestion to make Sign a value class).
The reason I don't think that will work is that the pattern is like:
sealed abstract class Switch(val toInt: Int)
case object On extends Switch(1)
case object Off extends Switch(0)
In this case, there are never other allowed values. And I think the case object means On
and Off
will be boxed anyway. I can run some tests to be sure, but I think a value class might be a net loss here.
Got it.
The first of many future PRs: #7
Trying to make up for lost time with #8 and #9 as well.
Closing this one.
I see the pushes, but not as PRs.
What if we start using PRs to be able to comment on code before it is merged?