-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.breaking-changeThe RFC proposes a breaking change.The RFC proposes a breaking change.
Description
Constantly writing "foo".to_string() and String::from("foo") gets tedious after a while.
So I'm proposing a String literal, it could be something as simple as s"foo", @"foo", or even s!"foo" similar to vec![1, 2, 3].
Pros: String gets less verbose, and it comes across just as clear.
Cons: String gets special treatment
nyanzebra, caspervg, NSCoder, randombit, svenstaro and 9 morenanokatze, JustAPerson, fstirlitz, Kerollmops, jjyr and 6 more
Metadata
Metadata
Assignees
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.breaking-changeThe RFC proposes a breaking change.The RFC proposes a breaking change.