-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Implemented Needs ECMA SpecThis feature has been implemented in C#, but still needs to be merged into the ECMA specificationThis feature has been implemented in C#, but still needs to be merged into the ECMA specificationProposalProposal champion
Milestone
Description
Raw string literal
- Proposed
- Prototype: No prototype needed.
- Implementation: In: https://github.com/dotnet/roslyn/tree/features/RawStringLiterals
- Specification: https://github.com/dotnet/csharplang/blob/main/proposals/csharp-11.0/raw-string-literal.md
Summary
Allow a new form of string literal that starts with a minimum of three """
characters (but no maximum), optionally followed by a new_line
, the content of the string, and then ends with the same number of quotes that the literal started with. For example:
var xml = """
<element attr="content"/>
""";
Spec: https://github.com/dotnet/csharplang/blob/main/proposals/raw-string-literal.md
Special thanks to @jnm2 for a deep review of this proposal
Thaina, ufcpp, nmarcel, iam3yal, slang25 and 188 moreKieranDevvsmerarischroeder, jnm2, Unknown6656, SamuelJohnsonMedia, iamcarbon and 27 moreantiufo, mhmd-azeez and Rekkonnectjnm2, KirillOsenkov, panoukos41, kzu, Unknown6656 and 43 moreThaina, AartBluestoke, slang25, Phantonia, merarischroeder and 14 morekyoyama-kazusa and ktwrd
Metadata
Metadata
Assignees
Labels
Implemented Needs ECMA SpecThis feature has been implemented in C#, but still needs to be merged into the ECMA specificationThis feature has been implemented in C#, but still needs to be merged into the ECMA specificationProposalProposal champion