News for hackers. Stuff that matters.
Re:Null Pointer Dereferencing Causes Undefined Behavior by lmm on Tuesday April 21, 2015 @11:36AM (#9414746)
If you permit calling C libraries from "paranoid C", that would give a very confusing debugging experience, where the semantics of identical code was different depending on which file that code happened to reside in.

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.

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...