News for hackers. Stuff that matters.
Re:C Strings and my slow descent to madness by stephc_int13 on Thursday April 06, 2023 @02:09PM (#35472114)
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++.

Re:C Strings and my slow descent to madness by marssaxman on Thursday April 06, 2023 @02:28PM (#35472387)
Amending 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.
Re:C Strings and my slow descent to madness by stephc_int13 on Thursday April 06, 2023 @02:51PM (#35472704)
I fully agree.
Re:C Strings and my slow descent to madness by int_19h on Thursday April 06, 2023 @03:08PM (#35472964)
It 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.
Re:C Strings and my slow descent to madness by up2isomorphism on Friday April 07, 2023 @02:14AM (#35478651)
Stdlib is probably the most successful library in the history, not sure how it is “unhelpful”.