4 ms·
You've already hit a limit when you're having to pepper your code with C style union type checks, imo.
by tytytytytytytyt 9y ago
You've already hit a limit when you're having to pepper your code with C style union type checks, imo.
- dtech 9y agoYou don't get it, you don't have to pepper the code. If you already have a `Circle` the check is unneeded. If you have done the check the type is constrained. You do exactly as much or less checks as you would do pattern matches on sealed traits in Scala, except that it works as you except in all instances, not just with sealed traits.
- tytytytytytytyt 9y ago> You don't get it, you don't have to pepper the code. If you already have a `Circle` the check is unneeded. That's not even what I was talking about...