Hacker News new | ask | show | jobs
by papaf 2729 days ago
Isn't Shapeless based in macros?

That said, an equivalent library in Rust would be very useful.

1 comments

Shapeless has one or two macros in its implementation, but as far as the rest of the ecosystem is concerned it might as well be part of the language. The point is that you can implement a custom typeclass and derivation of instances of that typeclass for struct-like ((possibly recursive) compositions of) sum/product types without ever having to write a custom macro.