Does D have too many features?

Timon Gehr timon.gehr at gmx.ch
Sun Apr 29 09:28:56 PDT 2012


On 04/29/2012 04:53 PM, Jacob Carlborg wrote:
> On 2012-04-28 22:43, Timon Gehr wrote:
>> On 04/28/2012 09:58 PM, foobar wrote:
>>> It should be replaced by a standard compilation
>>> API and the compiler should be able to use plugins/addons.
>>
>> Are you serious?
>
> Have a look at what Scala have done. They basically have the complete
> compiler available as a library. Then they used this library to
> implement runtime reflection and macros. Macros in Scala are functions
> that execute at compile time.
>

It is not as powerful as what we have in D and it requires invoking the 
compiler multiple times.


More information about the Digitalmars-d mailing list