DIP 1027--String Interpolation--Final Review Discussion Thread

FeepingCreature feepingcreature at gmail.com
Wed Feb 5 06:12:26 UTC 2020


On Wednesday, 5 February 2020 at 06:07:21 UTC, Walter Bright 
wrote:
> The DIP is minimalist. This is intentional, as it proposes a 
> very simple and straightforward rewrite of a literal into a 
> tuple expression. Understanding tuple expressions (an existing 
> D feature) is essential to understanding the DIP. This is a 
> technique called "lowering" and is a great way of simplifying 
> the semantics of a language and reducing corner cases and 
> implementation bugs. Other examples:
>
> 1. the compiler rewrites 'while' loops into 'for' loops
>
> 2. the compiler rewrites RAII constructions into `try-finally` 
> constructions
>
> In fact, the compiler could profit from doing a lot more 
> lowering transformations.

I don't think the reason why people disagree with you is that 
they don't know what lowering is.


More information about the Digitalmars-d mailing list