What would a minimal subset of D look like?
Stefan Koch
uplink.coder at googlemail.com
Fri Jun 28 08:29:20 UTC 2019
On Thursday, 27 June 2019 at 17:15:27 UTC, Ola Fosheim Grøstad
wrote:
> On Thursday, 27 June 2019 at 15:42:27 UTC, Kagamin wrote:
>> GC (at run time), clasess and typeinfo, everything else is
>> good for embedded. BetterC is not a good subset, it's more a
>> PR feature.
>
> Ok, but the question is more: what features are essential?
>
> And, which features are rarely used and can be replaced by a
> library solution?
This is less a question of a features essential-ness and more a
question of how much compiler integration is needed to
implemented it in an efficient and convenient (convenient for the
user) manner.
For example bounds-checking and slices can be done as a library
easily, but it's so much more convenient if they are part of the
language.
A type-system also needs to be integrated closely with the
compiler because it defines which code may be rejected early
thereby improving iteration times on faulty code.
More information about the Digitalmars-d
mailing list