oyvindberg / typo

Typed Postgresql integration for Scala. Hopes to avoid typos
https://oyvindberg.github.io/typo/
MIT License
99 stars 9 forks source link

`RepoImpl` are now classes #68

Closed oyvindberg closed 10 months ago

oyvindberg commented 10 months ago

objects are infinitely inflexible. users may want to extend the generated Repos, and then you also need to extend the implementation.

It's also bad style to always code against the implementation, you should code to interface. In the case of typo, this leads you to testable code.