45 karma · joined Oct 12, 2019 (7y ago) · 233 submissions
comment 6y ago · link · parent
In fact, I believe that in terms of developer time wasted as well user frustration, C++ is the most harmful language in the history of humanity. Someday I'll put together a page listing the dozens of C++'s design daults. Here's just a single article demonstrating how incompatible with simplicity and correctness C++ is: http://www.icu-project.org/docs/papers/cpp_report/the_anatom...
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
And the main Haskell compiler is implemented in C. In fact, Haskell is represented at one stage of compilation by a C-like language called Cmm. Would it be fair to say that Haskell was inspired by C? What are the main differences that make Haskell much better than C?
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
...can easily happen indeliberately. Just as any other exceptions. Which C can't even handle in a deterministic way because it doesn't have built-in exceptions, so you have to rely on libraries or remembering to check error codes. Not easy to reason about.
> typing is a non-issue
When all your function ptrs have to be cast to and from (void*) - hell yeah it's an issue.
> minor hassle
Then why are buffer overflow exploits in C programs on the news?
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent