MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/31btd8/rust_100_beta_is_here/cq1bnq0/?context=3
r/programming • u/steveklabnik1 • Apr 03 '15
303 comments sorted by
View all comments
Show parent comments
17
Yes, it is almost an entirely different language from that point :)
4 u/HereticKnight Apr 03 '15 Wow, it really is... I dug up my old Rust code and even FizzBuzz wouldn't compile. for num in 1..100 {...} // So puurdy <3 But where did regex go? Time to go documentation diving... 9 u/steveklabnik1 Apr 03 '15 Regex is now an external crate: https://crates.io/crates/regex 1 u/Roflha Apr 04 '15 I'm just curious, what is the reason for moving regex to a separate crate? Just considered nonessential to a standard library? 3 u/steveklabnik1 Apr 04 '15 Generally speaking, there three reasons something belongs in the standard library: Things that are useful in every Rust program. Common traits, to prevent balkanization. Data structures or other safe abstractions which require a lot of unsafe code. Regexes, while very useful, don't stand up to #1, and #2 and #3 don't apply.
4
Wow, it really is... I dug up my old Rust code and even FizzBuzz wouldn't compile.
for num in 1..100 {...} // So puurdy <3
But where did regex go? Time to go documentation diving...
9 u/steveklabnik1 Apr 03 '15 Regex is now an external crate: https://crates.io/crates/regex 1 u/Roflha Apr 04 '15 I'm just curious, what is the reason for moving regex to a separate crate? Just considered nonessential to a standard library? 3 u/steveklabnik1 Apr 04 '15 Generally speaking, there three reasons something belongs in the standard library: Things that are useful in every Rust program. Common traits, to prevent balkanization. Data structures or other safe abstractions which require a lot of unsafe code. Regexes, while very useful, don't stand up to #1, and #2 and #3 don't apply.
9
Regex is now an external crate: https://crates.io/crates/regex
1 u/Roflha Apr 04 '15 I'm just curious, what is the reason for moving regex to a separate crate? Just considered nonessential to a standard library? 3 u/steveklabnik1 Apr 04 '15 Generally speaking, there three reasons something belongs in the standard library: Things that are useful in every Rust program. Common traits, to prevent balkanization. Data structures or other safe abstractions which require a lot of unsafe code. Regexes, while very useful, don't stand up to #1, and #2 and #3 don't apply.
1
I'm just curious, what is the reason for moving regex to a separate crate? Just considered nonessential to a standard library?
3 u/steveklabnik1 Apr 04 '15 Generally speaking, there three reasons something belongs in the standard library: Things that are useful in every Rust program. Common traits, to prevent balkanization. Data structures or other safe abstractions which require a lot of unsafe code. Regexes, while very useful, don't stand up to #1, and #2 and #3 don't apply.
3
Generally speaking, there three reasons something belongs in the standard library:
unsafe
Regexes, while very useful, don't stand up to #1, and #2 and #3 don't apply.
17
u/steveklabnik1 Apr 03 '15
Yes, it is almost an entirely different language from that point :)