On 1/24/2012 1:58 AM, dennis luehring wrote:
Am 24.01.2012 10:40, schrieb Walter Bright:
On 1/23/2012 11:50 PM, dennis luehring wrote:
The Rust compiler 0.1 is unleashed
http://www.reddit.com/r/programming/comments/opgxd/mozilla_and_the_rust_community_release_rust_01_a/
looks nice - but rusts #fmt macro is nothing compared to std.metastrings
and is not even library based :)
It's hard to find any definitive information, but Rust appears to have no
exception handling and no generics.
generics like are here described
http://doc.rust-lang.org/doc/tutorial.html#generics
Ok. No metaprogramming, though.
but for exceptions they only got the fail()-thing
http://doc.rust-lang.org/doc/tutorial.html#failure
I found this:
"The str type in Rust is represented exactly the same way as a vector of bytes
([u8]), except that it is guaranteed to have a trailing null byte (for
interoperability with C APIs)."
0 terminated strings are a source of a lot of speed issues in C and C++ code.
and:
"Like vectors, strings are always unique. You can wrap them in a shared box to
share them. Unlike vectors, there is no mutable variant of strings. They are
always immutable."
No slicing.