[haXe] Boolean statements type error
Nicolas Cannasse
ncannasse at motion-twin.com
Mon Dec 10 16:09:58 CET 2007
Tommy Olesen a écrit :
> Dear Nicolas,
>
> I suggest haxe consider a Bool statement a type error. This will
> catch bugs like this one:
>
> if (rs == null) {
> rs == [];
> }
>
> that I just spent some time finding. Because I am such a fast typer
> ;-) there are too many ='s in the example above. This is a variant of
> a classical bug: one = too little in an if:
This will part of the work involved in having errors in case the result
of an expression without side effect is not captured.
Best,
Nicolas
More information about the Haxe
mailing list