www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Using IES for mixins

reply Steven Schveighoffer <schveiguy gmail.com> writes:
Just wrote a quick blog post on this. Is there any interest in 
having this in druntime?

Another option, which we were discussing at extended beerconf 
(yes, it's still going on, though it's pretty lonely right now) 
is to just have mixin accept IES as-is.

https://www.schveiguy.com/blog/2024/12/using-interpolation-expression-sequences-for-code-mixins/

-Steve
Dec 31 2024
parent "Richard (Rikki) Andrew Cattermole" <richard cattermole.co.nz> writes:
On 01/01/2025 7:49 AM, Steven Schveighoffer wrote:
 Just wrote a quick blog post on this. Is there any interest in having 
 this in druntime?
 
 Another option, which we were discussing at extended beerconf (yes, it's 
 still going on, though it's pretty lonely right now) is to just have 
 mixin accept IES as-is.
 
 https://www.schveiguy.com/blog/2024/12/using-interpolation-expression- 
 sequences-for-code-mixins/
 
 -Steve
I am failing to see an argument against supporting IES as-is for a string mixin. Its a nice QoL addition, without any obvious down sides.
Dec 31 2024