Discussion Thread: DIP 1036--Formatted String Tuple Literals--Community Review Round 1

Adam D. Ruppe destructionator at gmail.com
Sat Sep 12 14:53:48 UTC 2020


On Saturday, 12 September 2020 at 14:37:45 UTC, James Lu wrote:
> Instead of adding syntax, you can use an existing language 
> feature to do it.

That's basically the C# solution.

That is good if we just doing simple values, but it fails for D's 
unique compile-time things and is iffy with ref and non-copyable 
types.

I wrote about it in more detail in my blog last year:

http://dpldocs.info/this-week-in-d/Blog.Posted_2019_05_13.html#hybrid-library-solutions

In short, things like `ref`, `enum`, and `alias`-ness of data are 
lost through that layer.

So good, but not great because it doesn't build on D's other 
existing strengths.



Me and Steven continue to argue in a chat btw, we're whittling 
each other's ideas down and we're coming to something you all 
will prolly like...

so stay tuned.


More information about the Digitalmars-d mailing list