"Steven D'Aprano" <[EMAIL PROTECTED]> wrote

> [snipped]
> No compiler will catch this error:
>
> x = 12.0 # feet
> # three pages of code
> y = 15.0 # metres
> # three more pages of code
> distance = x + y
> if distance < 27:
>     fire_retro_rockets()

Actually modern compilers can 
(http://www.boost.org/libs/mpl/doc/tutorial/dimensional-analysis.html)
at the expense of the programmer's eye health...

George


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to