Mixin template evaluated to string can convert to string mixin expression implicitly

d coder dlang.coder at gmail.com
Sun Aug 21 00:48:40 PDT 2011


On Mon, Jun 27, 2011 at 2:09 PM, Don <nospam at nospam.com> wrote:

> kenji hara wrote:
>
>> Issue in bugzilla:
>>  http://d.puremagic.com/issues/**show_bug.cgi?id=6207<http://d.puremagic.com/issues/show_bug.cgi?id=6207>
>> Test implementation:
>>  https://github.com/9rnsr/dmd/**commit/**52e4491cf6bf9ccf6dccc1fa60581f**
>> d6797d39b3<https://github.com/9rnsr/dmd/commit/52e4491cf6bf9ccf6dccc1fa60581fd6797d39b3>
>>
>> String mixin feature in D is very useful, but its syntax is bit ugly.
>> My proposal will make it more softly, and introduces more generative
>> programming.
>>
>> Any thoughts?
>>
>> Kenji
>>
>
> Yes, it's _less_ ugly, but I just don't think it gets rid of enough of the
> ugliness. You still get that horrid q{ } around the code. I also don't see
> any reason for the feature to be restricted to templates.
> The effect is a bit like sugar on syntax anchovies <g>.
>

Any chance of this feature getting into D language?

I believe that this would be very useful for domain specific embedded
languages.

Regards
- Puneet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110821/98870f0e/attachment.html>


More information about the Digitalmars-d mailing list