3 ms·
the "problem" with scala and case classes is that it's very cumbersone when you have case classes with 30+ fields (and you'll have it, expecially if they came f
by _ZeD_ 6y ago
the "problem" with scala and case classes is that it's very cumbersone when you have case classes with 30+ fields (and you'll have it, expecially if they came from some SQL table) and you want to match only a sigle field.
as they are positional-only - and you also need to specify all the other placeholders, makes reading the match very difficult
- virtualwhys 6y agoIn the proposed case then why not just: case x:Bar if x.foo = ... => ?