[rust-dev] Deriving keyword

Armin Ronacher armin.ronacher at active-4.com
Sun Jan 26 06:47:41 PST 2014


On 24/01/2014 08:28, Lee Braiden wrote:
> "deriving", like Haskell has.  Is maintaining a low keyword count really THAT
> important, that we have to have ugly #[] wrappers around things?  I had thought
> that #[] represented meta-information, like how to compile/link the file, but if
> deriving is in there, it's very much involving the language proper, too.
Yes!  It means you can add things after the fact without breaking people's code. 
  Just think of how bools in C are __Bool now and you need a header to make it 
into bool.

Also it means that language specifics and library functionality look more like 
each other.


More information about the Rust-dev mailing list