Rust updates

Marcel Marcel.Kincaid at gmail.com
Mon Dec 17 23:36:25 PST 2012


> Rust designers seems to love really short keywords, this is in 
> my opinion a bit silly. On the other hand in D you have 
> keywords like "immutable" that are rather long to type. So I 
> prefer a mid way between those two.

They aren't silly, they're consistent. We have int, char, auto,
they have fn, var, and val which are common these days, why not
mut, pub, and priv? What is silly are the objections, such as
someone saying that it's like limiting the length of identifiers.
It's obviously NOTHING like that.

> Rust supports several types of pointers. The simplest is the 
> unsafe pointer, written *T, which is a completely unchecked 
> pointer type only used in unsafe code (and thus, in typical 
> Rust code, very rarely).

It's &T, and it has nothing to do with unsafety.


More information about the Digitalmars-d mailing list