On Tuesday, 30 July 2013 at 14:18:20 UTC, Kenji Hara wrote:
Two years ago I proposed the feature with experimental compiler
change, but
it was properly rejected.
https://github.com/D-Programming-Language/dmd/pull/459
Kenji Hara
2013/7/30 JS <[email protected]>
On Tuesday, 30 July 2013 at 13:03:47 UTC, monarch_dodra wrote:
On Tuesday, 30 July 2013 at 12:25:47 UTC, JS wrote:
First how does that remove having to type mixin every time?
That will *never* happen. Having the keyword *mixin* at call
site is
important so the caller understand what is actually
happening. Without
this, you are basically injecting a macro into caller code.
Good luck with
the re-read.
Um, so? You think my d source is going to be hacked? Someone
is going to
turn all my templates into string mixins and trick me?
I seriously don't see the issue ;/ By having some special
convention for declaring the template then any user of it should
have some inclination. Progress isn't made by dumbing down to the
lowest common denominator or removing all chances for failure.
How bout a simple command line switch to enable the feature?