strong/weak typing and pointers

Gabriel Zachmann zach at cs.uni-bonn.de
Tue Nov 2 04:51:53 EST 2004


>  You didn't mention C++. Try this ...
>  
>     std::string s = "Wow";
>     s += 3.141592654; // Perfectly valid
>     s = 3.141592654;  // Also valid

ah, good example.

So, would it be valid to say:
the more coercion (or automatic conversion) rules a language has, the
weaker the typing?

Best regards,
Gabriel.

-- 
/-------------------------------------------------------------------------\
| There are works which wait,                                             |
| and which one does not understand for a long time; [...]                |
| for the question often arrives a terribly long time after the answer.   |
|                                                         (Oscar Wilde)   |
+-------------------------------------------------------------------------+
| zach at cs.uni-bonn.de            __@/'        www.gabrielzachmann.org     |
\-------------------------------------------------------------------------/



More information about the Python-list mailing list