"Strong typing vs. strong testing"

Pascal J. Bourguignon pjb at informatimago.com
Mon Sep 27 22:38:17 CEST 2010

"Scott L. Burson" <Scott at ergy.com> writes:

> Pascal J. Bourguignon wrote:
>> On the other hand, with the dynamic typing mindset, you might even wrap
>> your values (of whatever numerical type) in a symbolic expression
>> mentionning the unit and perhaps other meta data, so that when the other
>> module receives it, it may notice (dynamically) that two values are not
>> of the same unit, but if compatible, it could (dynamically) convert into
>> the expected unit.  Mission saved!
> In fairness, you could do this statically too, and without the consing
> required by the dynamic approach.

I don't deny it.  My point is that it's a question of mindset.

__Pascal Bourguignon__                     http://www.informatimago.com/

More information about the Python-list mailing list