Better C – A subset of D Programming Language
1–10 of 360 posts
Re: Better C – A subset of D Programming Language
#2- "D as a Better C" (2017): https://dlang.org/blog/2017/08/23/d-as-a-better-c/
- "Vanquish Forever These Bugs That Blasted Your Kingdom" (2018): https://dlang.org/blog/2018/02/07/vanquish-forever-these-bug...
- "DasBetterC: Converting make.c to D" (2018): https://dlang.org/blog/2018/06/11/dasbetterc-converting-make...
Re: Better C – A subset of D Programming Language
#3And that's a huge shame. Because in general I really liked using D.
Re: Better C – A subset of D Programming Language
#4Re: Better C – A subset of D Programming Language
#5One thing that really annoyed me about D is that its documentation lists basically every function with an 'auto' return type. Auto should be completely banned from documentation, it's a complete hindrance. It's the single biggest contributor to why I stopped using D for personal projects - I was so tired of having to hunt down what functions are going to return, sometimes having to resort to just using it and looking…
pragma(msg, T);
where T is any type will print the type to the screen during compilation. pragma(msg) will print all kinds of things, making it a very handy tool to visualize what is happening while compiling. I use it all the time.Re: Better C – A subset of D Programming Language
#6Walter here - AMA!
Re: Better C – A subset of D Programming Language
#7Walter here - AMA!
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.
Re: Better C – A subset of D Programming Language
#8Walter here - AMA!
Re: Better C – A subset of D Programming Language
#9One thing that really annoyed me about D is that its documentation lists basically every function with an 'auto' return type. Auto should be completely banned from documentation, it's a complete hindrance. It's the single biggest contributor to why I stopped using D for personal projects - I was so tired of having to hunt down what functions are going to return, sometimes having to resort to just using it and looking…
Re: Better C – A subset of D Programming Language
#10Walter here - AMA!
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.
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).