PEP 3107 and stronger typing (note: probably a newbie question)

Bruno Desthuilliers bruno.42.desthuilliers at wtf.websiteburo.oops.com
Thu Jun 28 03:30:28 EDT 2007


Stephen R Laniel a écrit :
> On Thu, Jun 28, 2007 at 09:08:16AM +0200, Bruno Desthuilliers wrote:
>> You said ?
> 
> I could link again to Mark-Jason Dominus, who writes that
> people often make the following inference:
> 
> 1) C is strongly typed.

Lol. C is well known for it's very weak typing.

> 2) C's typing sucks.
> 3) Hence strong typing sucks.

Whoever make such a braindead inference should better learn the meaning 
of words, read more about the concepts and applications of 'typing' in 
CS, and experiment with type-inference based languages.

> But I won't.
> 
> It doesn't need to be a religious war. Why can't people just
> say "When strong typing is done and used well, it's a
> useful tool; when it's not, it's not"?

Python is actually a rather strongly typed language. Some would even say 
it's more strongly typed than C. Please stop confusing static with 
strong. "static" means 'at compile time' - by opposition with "dynamic", 
  meaning 'at run time'. This is somewhat orthogonal to the 
'weak/strong' axis.




More information about the Python-list mailing list