35 ms·
I think records are better solution than tuples in most cases, they provide type safety, contain the field names and auto-completion for fields. Scala-records m
by Ciantic 11y ago
I think records are better solution than tuples in most cases, they provide type safety, contain the field names and auto-completion for fields. Scala-records makes casting records back to case classes easy.
Defining tables as case classes is pretty neat, but option to get Records out of queries would be preferred.
Though I can't figure out which Scala record implementation is going to prevail, making the choice hard, but creating own record type is probably not the way.