3 ms·
John de Goes mentions at the start of his article how Scala implements type classes without an extra language construct. But he doesn't show what his example wo
by joostdevries 11y ago
John de Goes mentions at the start of his article how Scala implements type classes without an extra language construct. But he doesn't show what his example would look like in Scala. So I wrote that out for my own amusement.
You can find the gist here. https://gist.github.com/joost-de-vries/949fbea6345fec1ac4ef https://gist.github.com/joost-de-vries/949fbea6345fec1ac4ef