In the discussion on dynamic type checking, I used the example text += Math.PI; and indicated it would throw an exception. Alas, it does not, because += is actually defined for strings and a double. So this should maybe just be changed to *= instead.
Changed to -= instead of the original += or the *= that was suggested in the original description. There is already a *= in the list of things that fail, so I didn't want two of them.
In the discussion on dynamic type checking, I used the example
text += Math.PI;
and indicated it would throw an exception. Alas, it does not, because+=
is actually defined for strings and adouble
. So this should maybe just be changed to*=
instead.