What is The Billion Dollar Mistake?
What is The Billion Dollar Mistake?
The "Billion Dollar Mistake" refers to the decision by Tony Hoare, the inventor of the null reference, to include it in Algol W, a programming language he designed in 1965. In a 2009 conference, Hoare apologized for this decision, calling it his "billion-dollar mistake".
Null references, also known as null pointers, are a common source of errors in many programming languages. When a program tries to access data through a null reference, it typically results in a null pointer exception or similar runtime error. These errors can be difficult to diagnose and can cause programs to crash or behave unexpectedly.
Hoare's regret stems from the fact that null references have led to "innumerable errors, vulnerabilities, and system crashes, which have probably caused a billion dollars of pain and damage in the last forty years". The pervasive use of null references in many programming languages has made it challenging to write robust and reliable software.
Đăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.