TLDR.chat
Get the extension
Colour theme
New summary

Reading settings

Typeface
Text size
Line spacing
Line width

The Costly Mistake of Null References in Programming

Summary of Null References: The Billion Dollar Mistake · Open original ↗InfoQ · Tony Hoare · Aug 25, 2009

Tony Hoare introduced Null references in ALGOL W back in 1965 "simply because it was so easy to implement", says Mr. Hoare. He talks about that decision considering it "my billion-dollar mistake".

The text discusses the historical impact of null references in programming, proposing that they have been a costly mistake. It highlights the challenges of error prevention in programming languages and the responsibility of language designers to ensure correctness. The text also delves into the introduction of null references, the concept of disjoint unions, and the importance of programming language safety. Additionally, it touches on the implications of the C language's "gets" function in enabling malware and viruses, leading to substantial economic costs.

  • Null references have historically been a costly and problematic feature in programming languages.
  • Language designers should prioritize the correctness and safety of programs written in their language.
  • The introduction of null references, handling of record-oriented programming, and the concept of disjoint unions are discussed.
  • The C language's "gets" function played a significant role in enabling malware and viruses, leading to substantial economic costs.

Ask about this page

Ask anything about the original page. Answers come from its text.

Only you see your questions. We don't save them.

Enter to send · Shift+Enter for a new line