[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Strong versus (weak|runtime) typing
At 13:07 12/02/2003 -0800, Dare Obasanjo wrote: >Static Typing - Type of variables must be declared at compile time (e.g. >C++) >Dynamic Typing - Type of variables determined from usage at runtime >(e.g. JavaScript) >Strong Typing - Variables cannot be coerced to unrelated types. (e.g. >Java) >Weak Typing - Variables can be coerced to unrelated types. (e.g. C) Python: x = 1 y = "Hello" y = y + x TypeError: cannot concatenate 'str' and 'int' objects So Python is dynamically typed. i.e. at runtime. Not weakly typed. Just as Guido said and not what you said. regards, Sean
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|