Discussion Thread: DIP 1036--String Interpolation Tuple Literals--Community Review Round 2

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Thu Feb 4 16:03:21 UTC 2021

On Thursday, 4 February 2021 at 15:48:47 UTC, Adam D. Ruppe wrote:
> On Thursday, 4 February 2021 at 15:39:53 UTC, Ola Fosheim 
> Grøstad wrote:
>> of course, JavaScript also converts to string automagically
> if and only if you use the default function.
> foo`string` in javascript does not necessary convert to string.

Yes, I like the meta-programming aspect, but I think it can be 
solved by overloading so that foo can be used for other symbols. 
Does the proposal allow for this?

For instance you could require that templated function


will only be called if it prefixes foo`string`

Then you could have very short symbols as prefixes without 
wasting precious symbols.

More information about the Digitalmars-d mailing list