Re:Null Pointer Dereferencing Causes Undefined Behavior
by TheLoneWolfling on Tuesday April 21, 2015 @02:02PM
(#9415812)
You can say the same about C and C++: [1]
(On a side note. I like OCaml, but don't like the syntax. I wish there was a language out there that was basically OCaml with c-like syntax. Or rather, I wish language syntax in general was less coupled with language semantics. It should be possible, and is, to, for example, automatically convert between Pythonic-style indentation and C-style braces and lisp-esque braces. Define the language in terms of an AST and leave the syntax up to the editor.)
[1] http://stackoverflow.com/questions/12887700/can-code-that-is...
If you don't... maybe. But do you realistically think "paranoid C" would ever get its library ecosystem up to a level where it matched e.g. OCaml? Do you think embedded vendors would be more likely to support it (the other big use case for C)? If you're going to be switching libraries anyway, OCaml is a much nicer language to work in.