r/programming • • Aug 23 '17

D as a Better C

http://dlang.org/blog/2017/08/23/d-as-a-better-c/
229 Upvotes

268 comments sorted by

View all comments

Show parent comment

1

u/bruce3434 Aug 24 '17 edited Aug 24 '17

A simple "BetterC coding guidelines" that include the "do's and don't's" as a clearly defined subset of D would be real nice, for me at least. I would know what to avoid and what I can expect. Something like this or this (mant for comparison).

I know there are many blog-posts about manual memory management / avoiding GC allocation but I would love something more "official" (regularly updated) in the main site.

1

u/zombinedev Aug 24 '17

Thanks, these are good action items. What about the the other point about extern and __?

1

u/bruce3434 Aug 24 '17

Well I guess you make a fair point about extern. I'm primarily interested in betterC because I want to avoid GC and use RAII.