There's a glaring problem with Typeclass derivation

It’s too enjoyable to use, especially combined with extension methods.

I made a ‘JSON library’ with it here if anyone’s interested in seeing a full example:

5 Likes

The title’s pretty deceiving (although I suppose you meant it to sound like that).

1 Like

It’s called clickbait, and no one likes it except people that make money off ad views.

3 Likes

It did make me chuckle :slight_smile:

@nafg

I have 0 ads or tracking on my website or github. But I’m glad I got your goat!!

Hmm, interesting that exists a real problem with typeclass derivation, which can relate to JSON-convert lib: it does not work with complex hierarchies (see https://github.com/lampepfl/dotty-feature-requests/issues/161 ), which makes the potential library usage quite limited in practice. (Hope, this will be better in 3.1)

3 Likes