News for hackers. Stuff that matters.
Re:Ask HN: What would a better C look like? by iamNumber4 on Saturday November 10, 2018 @05:30PM (#18423878)
As already mentioned. It exists, D Lang. It’s a better C and a better C++. It has a runtime, which you can choose or not use. It is ABI compatible with C, and C++ ABI is a work in progress.

You can switch from writing C to D, and still use all of the existing C libraries and code you do today. You can even use D libraries in your C projects.

There is the betterC flag that can be used as well which essentially turns off the D Lang runtime.

The runtime allows garbage collection and other memory safety that more modern languages like Java and C# have spoiled use with. Also allowing for write once, compile every where. Making it a very portable language.

http://www.dlang.org

The other benefit is it is a language not owned and developed by a corporation like Java, C#, objective-C and go. So there is no ulterior motive’s or agendas by said corporation.

There are no comments on this comment yet.