News for hackers. Stuff that matters.
Re:What is wrong with NULL by paulddraper on Monday August 31, 2015 @05:28PM (#10149212)
Author here. I didn't know that about Haskell.

Admittedly, the "rating" is pretty rough, maybe even a bad idea.

I've seen std::ptr::null more than I ever have Foreign.Ptr.nullPtr.

But really, both are usually used for compatibility with external libraries/programs/runtimes, not for idiomatic language programming.

Both great languages in my book :)

Re:What is wrong with NULL by bjz_ on Monday August 31, 2015 @06:26PM (#10149491)
> I've seen std::ptr::null more than I ever have Foreign.Ptr.nullPtr.

Probably because we need to work with the C API a great deal right now, but that should change as more and more things are written in Rust. Still, the unsafe boundary helps by removing the ability to dereference a raw pointer in safe code - something that Haskell doesn't have.

Re:What is wrong with NULL by paulddraper on Monday August 31, 2015 @08:10PM (#10149907)
FYI, I fixed it. std::ptr::null isn't really comparable, so I removed it. You can't really use it in Rust like you could in other languages.