←back to thread

611 points LorenDB | 1 comments | | HN request time: 0s | source
Show context
markus_zhang ◴[] No.43908006[source]
What if we have a C that removes the quirks without adding too much brain drain?

So no implicit type conversions, safer strings, etc.

replies(10): >>43908024 #>>43908037 #>>43908071 #>>43908130 #>>43908141 #>>43908193 #>>43908341 #>>43908840 #>>43909556 #>>43913099 #
wffurr ◴[] No.43908024[source]
This seems like such an obvious thing to have - where is it? Zig, Odin, etc. all seem much more ambitious.
replies(3): >>43908123 #>>43908201 #>>43908346 #
steveklabnik ◴[] No.43908123[source]
There have been attempts over the years. See here, a decade ago: https://blog.regehr.org/archives/1287

> eventually I came to the depressing conclusion that there’s no way to get a group of C experts — even if they are knowledgable, intelligent, and otherwise reasonable — to agree on the Friendly C dialect. There are just too many variations, each with its own set of performance tradeoffs, for consensus to be possible.

replies(1): >>43914808 #
1. wffurr ◴[] No.43914808[source]
That was fascinating reading and a graveyard of abandoned "better C" dialects: SaferC, Friendly C, Checked C, etc.