String literal
Nobody has claimed this yet.
- Dominant language
- Markdown
- Stars
- 6.6k
- Forks
- 1.7k
- Avg merge
- 16h 14m
- Merged PRs (30d)
- 1
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading issue #2206 and its discussion in the rust-lang/rfcs repository, then review the repository's RFC process. Done would require a resolved proposal for String literal syntax and behavior that is accepted through that process; no implementation files or tests are named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100