On Sunday, 19 May 2013 at 19:42:59 UTC, Walter Bright wrote:
On 5/19/2013 12:31 PM, Minas Mina wrote:
On Sunday, 19 May 2013 at 18:30:09 UTC, deadalnix wrote:
void buzz(Foo f) {
f.foo(); // Rely in faith. It is invalid and way easier to
write than the
valid code, which is THE recipe for it to spread.
}
Shouldn't this throw a NullPointerSomething?
It throws a seg fault at runtime. It *is* checked for by the
hardware.
I think there is difference between catching exception and saving
data which you have typed for some period and letting harware
"check" the exception for you meanwile loosing your work.