c++ for python programmers

Anders Arnholm Anders+news at Arnholm.nu
Wed Feb 14 04:15:13 EST 2007


Sam <free.condiments at gmail.com> skriver:
> On 13 Feb 2007 17:51:00 GMT, Jorgen Grahn
><grahn+nntp at snipabacken.dyndns.org> wrote:
>> Well, C++ is a better language than C in many ways. So, if he needs to learn
>> one of them, why does it have to be C?
>>
>> Another reason some people choose C++ over Python for some tasks is that
>> they feel that larger programs benefit from strong, static type checking.
>> I like both ways, but depending on the task, one or the other is better.
>
> C++ is -not- strongly typed. You can cast anything to void *, and
> manipulate it in ways unimaginable. Plus there's the whole mess that
> is pointer arithmetic and a weak typesystem...


C++ can be both, The type systenm is as fragila as you like it to be.
I mainlty use c++ when i the need stronger typing that Python och C
can't give me. In some ways it's even stronger types than languanges
as Java and ObjectiveC. C++ it however at least four different
languanges, in one ball of soupe.

And yes you can do it, that doesn't mean you have to dio it. As
_functions in python or __, you can use them from anyware, you don't
have to.

/ Balp


-- 
http://anders.arnholm.nu/			     Keep on Balping



More information about the Python-list mailing list