Why is D unpopular?

a11e99z black80 at bk.ru
Wed May 4 11:24:58 UTC 2022


On Tuesday, 3 May 2022 at 19:01:44 UTC, Walter Bright wrote:
> On 5/3/2022 12:34 AM, Max Samukha wrote:
>> On Monday, 2 May 2022 at 20:24:29 UTC, Walter Bright wrote:
>> 
>>> It sounds just like how Lisp, Java, and C# work. Nemerle even 
>>> uses the same interpreter/code generator as C#.
>> 
>> C# can't do CTFE. For example, in C#, you can't generate code 
>> (without resorting to hacks) at compile time based on UDAs the 
>> way you can in Nemerle or D. In C#, you usually process UDAs 
>> at runtime. I guess that is what you mean when you say "it 
>> needs compiler runtime at runtime". Yes, C# needs one because 
>> it must defer code generation to runtime.
>
> I'm surprised C# can't do CTFE. I guess its creators never 
> thought of it :-)
>

https://docs.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/source-generators-overview


More information about the Digitalmars-d mailing list