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

Timon Gehr timon.gehr at gmx.ch
Wed Dec 4 13:35:23 UTC 2019


On 04.12.19 12:10, Dennis wrote:
> 
> 
> Now my proposed next one is:
> 
> - Small feature: context-sensitive string literals
>    Small problem: accidentally bumps the complexity class of D's lexical 
> grammar.

A small fix for this small problem is to just say in the specification 
that heredoc identifiers may not exceed 1e100 characters. ;)

Another fix could be to just go over the language specification and 
replace all wrongly applied CS terms by a short explanation of what is 
actually going on. (In practice, when Walter says D's grammar is 
context-free, what he means is that parsing does not depend on semantic 
analysis on a prefix of the code, a property that C++ has which implies 
context-sensitivity and is usually abbreviated this way, and Walter's 
aim was to contrast D to this.)


More information about the Digitalmars-d mailing list