3 ms·
I think it could be very nice. C is not perfect, there are some parts of the syntax that I strongly dislike, like casting or function pointers declaration...
by stephc_int13 4y ago
I think it could be very nice.
C is not perfect, there are some parts of the syntax that I strongly dislike, like casting or function pointers declaration...
But it is overall a good enough syntax, much simpler than C++.
- marssaxman 4y agoAmending the syntax is fun but rapidly becomes a slippery slope; soon enough you find yourself designing a new successor language, as has been done many times before. Simply scrapping the mostly-unhelpful C stdlib and inventing new, modern abstractions for allocation, IO, text, threading, etc seems like a more tractable problem.
- stephc_int13 4y agoI fully agree.
- int_19h 4y agoIt has the same fundamental problem, though: you have to rewrite most existing code, which hinders adoption. In this case, it might actually hinder it more than also improving the language itself, since people would be more willing to take that leap if there are more benefits to be had from it.
- up2isomorphism 4y agoStdlib is probably the most successful library in the history, not sure how it is “unhelpful”.