On Thu, May 30, 2013 at 08:14:39AM -0400, Daniel Micay wrote: > We could have a more generic trait than `Zero` for this. For example, > Haskell has a third party data-default package[1] that's fairly widely > used (pandoc is one of the users) and there's a similar concept in C++ > with default constructors. We could just standardize the > parameter-free `new` method this way.
That's fine too, though I kind of thought this is what Zero was. Still, a `Default` trait that defines `new()` seems clearer and less math-geeky than using `Zero`. I'm fine with either. Mainly I just don't want to take random default values that may or may not be used, since that's only convenient if the type happens to be a scalar, basically. Niko _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
