I understand that division can be expressed as multiplication, but is there any particular reason why division (/) is not overloaded but multiplication is for durations? Then you could say:

 $midpoint = ($dt2 - $dt1)/2;

rather than

 $midpoint = ($dt2 - $dt1) * 0.5;

Small thing. Just curious.

Thanks,
Matt



Reply via email to