Re:Ask HN: Why is there not a memory-safe C?
by mannykannot on Thursday May 24, 2018 @08:16AM
(#17143206)
If you started on the project of making such a language, you would have to make choices about how to adapt dynamic memory allocation, pointer assignment and arithmetic, the various ways in which functions can return pointers to out-of-scope variables, the way C decays arrays to pointers when passing them to functions, and the way C accommodates separate compilation. Most of these issues touch the core paradigms of C, and if you were to build a decision tree of all the options, you would find that none of the leaves would be a subset of C. You would probably also find that each leaf is already well-served by an existing language.
[ Parent
| on HN ]
There are no comments on this comment yet.