haskell-nullpointer icon indicating copy to clipboard operation
haskell-nullpointer copied to clipboard

avoid the name clash with Prelude’s null

Open int-index opened this issue 3 years ago • 2 comments

C++ uses nullptr for null pointer literals: https://en.cppreference.com/w/cpp/language/nullptr

This package could do the same to avoid a name clash. Or not. Just an idea.

int-index avatar May 17 '21 13:05 int-index

Good idea. However, I think users could be unhappy if we dropped Java compatibility. What about overloading null so that it behaves like Prelude.null at function types, and like Data.NullPointer.null at other types?

zyla avatar May 17 '21 14:05 zyla

Yes, Java compatibility is a must here.

I propose to ask for a rename of Prelude.null, next year on 1st of April.

aloiscochard avatar May 17 '21 15:05 aloiscochard