News for hackers. Stuff that matters.
Re:Deriving Traits in Rust with Procedural Macros by papaf on Thursday January 03, 2019 @06:07AM (#18814286)
Isn't Shapeless based in macros?

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

Re:Deriving Traits in Rust with Procedural Macros by lmm on Thursday January 03, 2019 @06:11AM (#18814304)
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.