News for hackers. Stuff that matters.
Re:Null References: The Billion Dollar Mistake by jrockway on Saturday January 11, 2020 @10:15AM (#22020240)
> You don’t need to pass around ‘Maybe a’ everywhere.

You don't need to pass pointers around everywhere. Languages with null still have value types that cannot be null.

> You don’t need a separate “linter or whatever”.

Optional compiler flags count as "whatever" to me.

> it’s not undefined behavior like in C that could result in something weird and unpredictable happening later (or earlier!)

C++ doesn't define this, but the OS does (and even has help from the CPU).

Anyway, my TL;DR is that it's easy to have a slow program that passes everything by value, or east to have a fast program that uses pointers or references. Removing the special case of null is meaningless, because you can still have a pointer to 0x1 which is just as bad as 0x0, probably. This goes back to my original answer to the question "why don't more languages get rid of null" which was "it's harder than it looks." I think I'm right about that. If it were easy, everyone would be doing it.

Re:Null References: The Billion Dollar Mistake by temac on Saturday January 11, 2020 @05:20PM (#22022766)
> Languages with null still have value types that cannot be null.

Not all languages.

> C++ doesn't define this, but the OS does (and even has help from the CPU).

That's not how it works anymore, because C / C++ front-ends interacting with the optimizers are yielding too "optimized" results. See the classic https://t.co/mGmNEQidBT

Re:Null References: The Billion Dollar Mistake by rowanG077 on Monday January 13, 2020 @07:40PM (#22040535)
Oh boy... `-Wall` is "whatever". Please let me never look at code you have written...