Re: About programing, a general question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 22, 2010 at 10:32 PM, Michael Hennebry <hennebry@xxxxxxxxxxxxxxxxxxxxx> wrote:

The *default* should be python even for object-oriented stuff.
Python allows polymorphism and operator overloading.
There are important differences:
In python, one cannot declare the type of a variable or member:
Type is acquired by assignment.
def and class statements assign functions and classes to variables.
They do not preclude reassignment.
This could prevent an error message when
one would prefer that to the result.

Flexibility can be slow.
C++ and java with their fixed types will usually be faster.

The availablilty of useful additives is another
reason for not necessarily using the default.

--
Michael



You can say this because you might be knowing both the languages.


--

Regards,
Parshwa Murdia
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux