C++ Logo

STD-PROPOSALS

Advanced search

Subject: [std-proposals] Proposal - Allow any character between double quotes for strings.
From: J Decker (d3ck0r_at_[hidden])
Date: 2020-03-04 18:27:25


There's (IMO) not a lot of reason to terminate a string because end of line
characters are encountered...

https://gist.github.com/d3x0r/32a48432660968fa249899e934c841e1

Allow any character other than a " in quoted strings. The " character
itself needs to be escaped \" if included in " to a closing ". All regular
escape handling can be done, but other literal characters like '\t' or
'\n' that
are in the source between quotes should be included as that literal
character.

J



STD-PROPOSALS list run by herb.sutter at gmail.com

Standard Proposals Archives on Google Groups