What would a minimal subset of D look like?
Yatheendra
3df4 at gmail.ru
Sat Jun 22 16:45:55 UTC 2019
On Saturday, 22 June 2019 at 10:50:35 UTC, Ola Fosheim Grøstad
wrote:
>
> Yes, static interfaces can be done by duck-typing and
> conventions. Although it is difficult to ensure type safety
> with duck-typing alone (but one can improve on that with an
> enum that says something about capabilities and test those with
> a static assert).
This sounds like the Erlang recommendation (they call it tagged
tuples, records).
>
> Hmm, yes, that wasn't very clean... I guess this is a good
> argument for providing AST manipulation features ("AST macros").
Nim has AST macros.
> ...
More information about the Digitalmars-d
mailing list