On 06/17/14 11:30, Walter Bright via Digitalmars-d wrote:
> On 6/16/2014 9:32 PM, H. S. Teoh via Digitalmars-d wrote:
> 
>> And how would you syntax-highlight a string mixin that's assembled from
>> arbitrary string fragments?
> 
> You wouldn't need to, since the text editor sees only normal D code.

That's just because D lacks string interpolation and static-foreach.
These two things take meta programming to a whole new level.
The difference is similar to the C++- vs D-templates case. Superficially
"it's just a neater syntax", but in practice it allows perfectly readable
code to be written for cases where traditional (both template- and ctfe-
based) meta programs become an almost unmaintainable mess.
And the fact that those meta-programs can then be properly syntax-
highlighted in an editor is a nice extra.

artur (who implemented both features last weekend; it started out as a
fun "let's-see-how-D-would-look-if-it-had-this"-project, but after making
them work and then converting a few small programs, almost immediately
realized that he now does not want to live w/o this functionality)

Reply via email to