classes and functions

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Mar 5 21:41:16 EST 2007


En Sat, 03 Mar 2007 17:04:33 -0300, Arnaud Delobelle  
<arnodel at googlemail.com> escribió:

> On Mar 2, 11:01 pm, Nicholas Parsons <parsons.nichol... at gmail.com>
> wrote:
>> That is the beauty of using Python.  You have a choice of using
>> classes and traditional OOP techniques or sticking to top level
>> functions.  For short, small scripts it would probably be overkill to
>> use classes.  Yet the programmer still has classes in his tool chest
>> if he/she is writing code that is going to be reused in larger
>> projects.
>
> Exactly the same thing can be said about Lisp, C++, Perl, PHP, and no
> doubt many other languages that I don't know ;)
> (Well I guess C++ programs are not called 'scripts')

A notable exception being Java, even a "Hello world!" program must use a  
class.
And Eiffel, too.

-- 
Gabriel Genellina




More information about the Python-list mailing list