On Tue, Apr 15, 2014 at 1:12 PM, Patrick Walton <pcwal...@mozilla.com> wrote:
> Hi everyone,
>
> I'd like to remove the `~"foo"` literal syntax for owned strings in both
> expressions and patterns. After dynamically sized types, this syntax is the
> last remnant of the strange parser behavior by which the parser does
> something different for `~"foo"` and `~("foo")` (i.e. by which it looks at
> the next token when it sees a sigil and does something different than it
> would otherwise).

If I have x: &[char, ..5], I can use ~*x to get an owned version
without a lot of typing.  Would it be too insane to have that work for
&[char] or &str with DST?
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to