Hacker News new | ask | show | jobs
by sythe2o0 3717 days ago
I don't think using nil to represent uninitialized data is a major issue-- if it were possible to catch uninitialized but queried variables at compile-time, that could be an improvement, but we want to give the programmer control to declare and initialize variables separately.

I agree the second case is a little silly.

1 comments

It's perfectly possible to separate declaration and initialisation without using a null value.