Does D have too many features?

Jacob Carlborg doob at me.com
Sun Apr 29 23:26:13 PDT 2012


On 2012-04-29 18:28, Timon Gehr wrote:
> 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.

That's the whole point, there won't be any special case for CTFE. BTW, 
isn't that basically the same as having a built-in interpreter?

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list