Re:Why your first Rust FizzBuzz implementation may not work
by bjz_ on Monday October 13, 2014 @12:37AM
(#8447502)
At least you can now do: foo[].some_slice_method()
Re:Why your first Rust FizzBuzz implementation may not work
by kibwen on Monday October 13, 2014 @08:26AM
(#8448408)
I think this is an anti-pattern. I'm not a fan of the slicing syntax in general, which seems to exist only to paper over the missing traits that wycats mentions.
Re:Why your first Rust FizzBuzz implementation may not work
by dbaupp on Monday October 13, 2014 @08:30AM
(#8448418)
We will almost certainly just have `Deref<str> for String` and so autoderef will handle `some_string.some_slice_method()` correctly.
Re:Why your first Rust FizzBuzz implementation may not work
by kibwen on Monday October 13, 2014 @11:01AM
(#8448950)
Will we be able to kill the slicing syntax, then? :)
Re:Why your first Rust FizzBuzz implementation may not work
by heinrich5991 on Monday October 13, 2014 @02:50PM
(#8449983)
Slicing syntax is about being able to do stuff like string[1:3] AFAIK, so I hope it won't get killed.
I expect that to be fixed before 1.0.