So those who are not using it I strongly suggest you start to use it. It's basically a scripting language, dynamically and strongly typed, it's object oriented, you can also program functionally ( although I'd prefer LisP or Haskell to Python to program functionally ) and it's really fast. Now many of you may be wondering what is dynamic typing.... Now let me first tell you that it's got nothing to do with typing on your keyboard, it's the data-type of a variable that is under consideration. Now if you look up "Dynamic" on http//:www.dictionary.com under 'Computers' you find the meaning:
- affected by the passage of time or the presence or absence of power: Dynamic memory must be constantly refreshed to avoid losing data.
x = 10
the data-type of x is an INTEGER.
Now suppose I do this:
x = "aj"
here the data-type of the same variable is now STRING.
But in a "statically" typed language as C or C++, the data-type of a variable once declared cannot be changed. But what is the use of this?
Well it's easier to code and it makes a lot more flexible.
No comments:
Post a Comment