Reimplementing the bulk of std.meta iteratively

claptrap clap at trap.com
Tue Sep 29 13:07:35 UTC 2020


On Tuesday, 29 September 2020 at 10:03:12 UTC, Ola Fosheim 
Grøstad wrote:
> On Tuesday, 29 September 2020 at 09:07:39 UTC, claptrap wrote:
>> How do you decide what is an essential language primitive? Or 
>> what is necessary syntactic sugar? I mean syntactic sugar 
>> almost by definition isnt necessary, it's just window dressing.
>
> The for loop and the while loop is syntactic sugar in C-like 
> languages.
> So clearly syntactic sugar is more than window dressing.

OK yeah bad analogy. My point is that if you say "only what 
syntactic sugar is necessary" it doesn't really help because what 
does "necessary" mean? If you take it literally you dont need for 
and while loops because you have if and goto. But pretty much 
every language has them, so obviously there's more too it.

its a great quote and you can see the wisdom in it but there's a 
lot lurking under the surface of the words "essential" and 
"necessary"



More information about the Digitalmars-d mailing list