On Sat, Nov 30, 2013 at 11:35 PM, Benjamin Striegel
<[email protected]>wrote:
> > The other suggestion that's been floated that satisfies all of these
> constraints is `alloc`, and honestly, if `new` is that unpopular maybe we
> should just switch to that.
>
> I much prefer `new` to `alloc`. It *is* a shame that `foo::new()` has to
> change, but `alloc` is much grosser than `init`. And maybe we can think of
> a better naming convention for constructors... perhaps `foo::make()`.
>
FWIW, in Objective-C:
[MyType new] is shorthand for [[MyType alloc] init]
(Not saying we should do the same, just some prior art.)
--
Your ship was destroyed in a monadic eruption.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev