"no variable or argument declarations are necessary."

en.karpachov at ospaz.ru en.karpachov at ospaz.ru
Mon Oct 3 12:55:24 EDT 2005


On Tue, 04 Oct 2005 01:46:49 +1000
Steven D'Aprano wrote:

> errors and not rely on the compiler. 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()
> 
> And lo, one multi-billion dollar Mars lander starts braking either too
> early or too late. Result: a new crater on Mars, named after the NASA
> employee who thought the compiler would catch errors.

So, I guess, you have a spare Mars lander especially for unit-testing? :)

-- 
jk



More information about the Python-list mailing list