Re:Better C – A subset of D Programming Language
by perfunctory on Tuesday April 28, 2020 @06:27AM
(#23005538)
Would it make sense to spin "Better C" off into a separate language? It would for example help to create an ecosystem of 3rd party libraries not dependent on gc.
[ Parent
| on HN ]
Re:Better C – A subset of D Programming Language
by yvdriess on Tuesday April 28, 2020 @06:36AM
(#23005603)
Seconding the question. More to the point, a language that only needs libc and not a separate runtime.
It's a big boon that existing C projects can migrate one object file at a time to betterC, without needing to pull in extra dependencies. Moreover, embedded dev is where C is still the most entrenched due to its runtime simplicity (simple ctr0, linker script, and you're off).
Re:Better C – A subset of D Programming Language
by WalterBright on Tuesday April 28, 2020 @06:32AM
(#23005571)
You can certainly treat it that way. It specifically does not need its own libraries, all it needs are the usual C libraries. Libraries created with it are also directly accessible from C.
Re:Better C – A subset of D Programming Language
by mhh__ on Tuesday April 28, 2020 @09:11AM
(#23006590)
No. D already has image problems with D1 and D2 (as in people crop up on the forum asking about it a decade after the switch), making D better C a separate language probably wouldn't be a great idea