Null references redux
Ary Borenszweig
ary at esperanto.org.ar
Sat Sep 26 19:32:14 PDT 2009
Ary Borenszweig wrote:
> Walter Bright wrote:
>> Denis Koroskin wrote:
>> > On Sat, 26 Sep 2009 22:30:58 +0400, Walter Bright
>> > <newshound1 at digitalmars.com> wrote:
>> >> D has borrowed ideas from many different languages. The trick is to
>> >> take the good stuff and avoid their mistakes <g>.
>> >
>> > How about this one:
>> >
>> http://sadekdrobi.com/2008/12/22/null-references-the-billion-dollar-mistake/
>>
>> >
>> >
>> > :)
>>
>> I think he's wrong.
>
> Please, please, please, do some fun little project in Java or C# and
> drop the idea of initializing variables whenever you declare them. Just
> leave them like this:
>
> int i;
>
> and then later initialize them when you need them, for example different
> values depending on some conditions. Then you'll realize how powerful is
> having the compiler stop
I meant "spot"
More information about the Digitalmars-d
mailing list