I suspect a fairer comparison would be with C++, which would allow you to overload various operators and provide the same sort of syntax that python provides naturally. Python provides a richer set of structures (especially dictionaries) beyond that of C, and simple syntax to access them. It also provides classes and continuations, both of which can reduce code size. --ms On 2014-06-24 15:34, Warren D Smith wrote:
Python seems remarkable in the sense that a typical python program is about 1/5 the length of a corresponding C program (even though C is normally thought of as pretty concise). The question is why.
My initial guess at the answer is: Python is a lot like (say) MODULA-3, provided somebody had already written about a million lines of "libraries" of handy subroutines for you. There is nothing inherently concise about python, it is just that you have all these libraries of common tasks so you do not have to code them, you can just use them.
Is that guess true?
_______________________________________________ math-fun mailing list math-fun@mailman.xmission.com https://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun