Python vs. C#

Aahz aahz at pythoncraft.com
Tue Aug 12 16:47:33 CEST 2003


In article <Jq%Za.8237$M6.632214 at newsread1.prod.itd.earthlink.net>,
Joe Cheng <code at joecheng.com> wrote:
>
>Python is "strongly" typed in the sense that every object has a type.
>It is not "statically" typed in that references do not have types.
>Statically typed languages generally require you to declare variable
>types (some languages infer them) and in return you get compile-time
>warnings when you try to call methods that do not exist or perform
>casts that are semantically impossible.
>
>I may be wrong but I believe C is an example of a language with static
>weak typing... you have to declare variable types and some types of
>errors can be caught at compile time, but you can perform unsafe casts
>and not only will the compiler not stop you but at runtime you won't
>get an exception--just a possibly corrupted value in memory.

http://www.artima.com/weblogs/viewpost.jsp?thread=7590
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

This is Python.  We don't care much about theory, except where it intersects 
with useful practice.  --Aahz




More information about the Python-list mailing list