Which language constructs could be done as a library if we accept some breaking changes?
alexanderheistermann at gmail.com
Wed Dec 1 15:01:10 UTC 2021
On Sunday, 28 November 2021 at 20:47:28 UTC, Ola Fosheim Grøstad
> If there was a majority in favour of D3, with breaking changes,
> and a strong focus on meta-programming, then it would make a
> lot of sense to streamline the language.
> What would that consist of? I would say:
> 1. Figuring out what the missing bits for meta-programming are.
> 2. Taking out all language constructs that can be implemented
> as a library feature.
> 3. Add some syntactical sugar where necessary (mapping to
> library features).
> Which features that are currently in the language could with
> some adjustments be done as a library feature?
> Dynamic array?
> Others language features…?
> (I think all these could be done if meta-programming facilities
> were strengthened.)
> What do you think?
What you basically are asking for is C with ast macros.
More information about the Digitalmars-d