DIP 1026---Deprecate Context-Sensitive String Literals---Community Review Round 1

mipri mipri at minimaltype.com
Wed Dec 4 14:42:42 UTC 2019


On Wednesday, 4 December 2019 at 10:10:09 UTC, Ola Fosheim 
Grøstad wrote:
> On Wednesday, 4 December 2019 at 09:42:32 UTC, Dennis wrote:
>> That is only there for the narrative / background, correcting 
>> criticism is not a goal of this DIP.
>
> Suggesting a workable alternative usually is easier. Like:
>
> replace: q"delimiter...
>
> with Python like: """

Or specify that q"<<< (three chars exactly) can only be matched
with >>>", along with the other matching delimiters. This is a
breaking change though since the current behavior is:

   $ rdmd --eval 'writeln(q"<<< hello >>>")'
   << hello >>



More information about the Digitalmars-d mailing list