News for hackers. Stuff that matters.
Re:Use Your Type System by mrkeen on Friday July 25, 2025 @02:21PM (#44686447)
You have it backwards from where I'm standing.

'null' (and to a large extent mutability) drives a gigantic hole through whatever you're trying to prove with correct-by-construction.

You can sometimes annotate against mutability in OO, but even then you're probably not going to get given any persistent collections to work with.

The OO literature itself recommends against using constructors like that, opting for static factory pattern instead.

Re:Use Your Type System by munificent on Sunday July 27, 2025 @06:17PM (#44705234)
Nullability doesn't have anything to do with object-oriented programming.
Re:Use Your Type System by mrkeen on Wednesday August 06, 2025 @02:30AM (#44808427)
Yes, yes, "No true OO language ..." and all that.

But I'm going to keep conflating the two until they release an OO language without nulls.