J
jacob navia
Le 12/05/12 08:18, Gareth Owen a écrit :
Yes. C++ is the best thing since sliced bread.
In C, the programmer has to do more work. But he gains more control
of what is going on, and avoids a complex (and more error prone yes)
language.
It is my personal view, that is why I insist in developing in C. You
are entitled to your opinion of course. But I thought that in a C group
we would discuss how to improve C.
What would you propose? (Besides the obvious "Use C++")
Jacob's code contains an explicit cast of a void* to an int*, meaning
the programmer has to track the data types and then tell the compiler
what they are, rather than have the compiler track and check the types.
He doesn't seem to believe this to be a drawback.
Describing the C++ as "less error prone" would be something of an
understatement.
Yes. C++ is the best thing since sliced bread.
In C, the programmer has to do more work. But he gains more control
of what is going on, and avoids a complex (and more error prone yes)
language.
It is my personal view, that is why I insist in developing in C. You
are entitled to your opinion of course. But I thought that in a C group
we would discuss how to improve C.
What would you propose? (Besides the obvious "Use C++")