Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: Fearing the demise of Perl

by BUU (Prior)
on May 21, 2004 at 18:07 UTC ( [id://355391]=note: print w/replies, xml ) Need Help??


in reply to Re: Fearing the demise of Perl
in thread Fearing the demise of Perl

Going completely off topic (not that we really have a topic here..)

They say the same thing about C. The C++ people say "C is obsolete, don't bother with it", but you can see that C++ is more likely to die before C will. I doubt that they will ever write an good OS in C++.
Could you explain this please? I keep saying statements like this, or expressing similar sentiments regarding C vs C++, and I never understand them. To my mind, C++ is just C with a few additions (new/delete, class, templates), so what makes C better then C++? Since, as far as I know, any C program is a valid C++ program (with the exception, of course, of C programs that use C++ keywords, which is a stupid "exception"), so what makes C so much better?

I personally see C++ as better, firstly because I prefer new/delete vs malloc/free, just semantically. Secondly because I like OO programming, so I tend to use it in most of my "larger" projects, and having to deal with lots of "OO" code written in C has made me bitter.

Replies are listed 'Best First'.
Re: Re: Re: Fearing the demise of Perl
by iburrell (Chaplain) on May 21, 2004 at 21:56 UTC
    C++ is C with a few additions, but they are huge additions. Objects are a big change with all kinds of complexity. Templates are big and complicated.

    Sure, C++ can be used a better C. But the OO is the big benefit and that is a big change.

    Objective-C is a much better example of small extensions to C.

      Well, ok, so objects are a big addition. But it's just that, an addition. Why couldn't you write an operating system, or a device driver, in c++?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://355391]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-18 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found