> >    undef                     null
> >    ------------------------  ------------------------
> >    $a = undef;               $a = null;
> >    $b = 1;                   $b = 1;
> >    $c = $a + b;              $c = $a + $b;
> > 
> >    $c is 1                   $c is null

I'm quite sure that adding "null" into the language will complicate
programming and hardly will give any benefits. One should differentiate
between "null" and "undef", sometimes (or better always!) check variables
with defined(...) *and* isnull(...).
It is not easy to explain to novice difference between
"$var=undef","$var=null" and "undef $var", because difference will be too
hard to feel.
There will be many bugs because of "undef ne null".

<!ENTITY Vadim REALLIFE "Vadim V.Konovalov, St.Petersburg, Russia">
&Vadim;

Reply via email to