String interpolation, after a healthy debate on discord

Daniel N no at public.email
Tue Dec 14 16:04:58 UTC 2021


On Tuesday, 14 December 2021 at 15:58:21 UTC, WebFreak001 wrote:
>> ubyte[] data = hex"AABBCC"; // ok
>
> I was thinking about this as well - it would work but would run 
> at runtime. I'm not a fan of using it just for static data and 
> think `hexString!"..."` is better for that.

Then why isn't
text!i"..."
ok? Why do we need multiple
i"..."
f"..."
?


More information about the Digitalmars-d mailing list