[rust-dev] Deriving keyword

Daniel Micay danielmicay at gmail.com
Fri Jan 24 00:31:19 PST 2014


On Fri, Jan 24, 2014 at 3:28 AM, Lee Braiden <leebraid at gmail.com> wrote:
>
> Finally (and this is more curiosity than suggestion, because it could make
> the language too dynamic/magic), I wonder what's involved in dropping the
> "...deriving..." syntax altogether, and automatically deriving functionality
> for types that implement all the necessary underlying features?  It seems
> like that's what's done for types that fit POD, for example.

This would be incorrect in many cases. Then you're going to need a
syntax to disable it, and you're *still* going to need the syntax to
derive for non-Pod.


More information about the Rust-dev mailing list