These are chat archives for rust-lang/rust

24th
May 2016
Kabelo
@KabeloShongwe
May 24 2016 07:19
Thanks for warm welcome, I'm using rust to query elasticsearch. It's so wonderful. Will post if I get stuck
LeonineKing1199
@LeonineKing1199
May 24 2016 15:24
What constitutes a "language flaw" to you guys?
Sean Perry
@shaleh
May 24 2016 17:01
Something I stumble over every single time I code in that language.
Also, something both newbies and experienced coders trip on.
For instance, I am a Python coder for 15+ years now. I still wish statements had an end to them. A little whitespace mix up leads to lots of head scratching. Especially when a tool auto indents for me.
LeonineKing1199
@LeonineKing1199
May 24 2016 17:14
I ask because someone mentioned finding "flaws in the language" and that got me thinking, just what is a language flaw?
Sean Perry
@shaleh
May 24 2016 17:37
For Rust I find the difference between str and string constantly annoying. I have to marshall between them, setup COWs to make it easier / efficient, etc.
Te-jé Rodgers
@mr-rodgers
May 24 2016 17:49
It's probably subjective. Both
Zakarum
@omni-viral
May 24 2016 17:58
I personally found differences between &str and String very useful from efficiency point of view
Sean Perry
@shaleh
May 24 2016 17:59
true. But when writing code that predominantly is string pushing it can be frustrating or at least noisy. "foo".to_string() etc.
Zakarum
@omni-viral
May 24 2016 18:01
I use something.to_owned() more. Since I often have T: ToOwned in my code, where &str or String hidden behind that T
And I don't need to worry whether it one or another