Lumping C and C++ together..

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2003
Posts: 117
Reputation: subtronic is an unknown quantity at this point 
Solved Threads: 0
subtronic's Avatar
subtronic subtronic is offline Offline
Junior Poster

Lumping C and C++ together..

 
0
  #1
May 6th, 2005
These two languages, for the most part, are completely different; especially now. From culture to paradigm. So let's get a seperate C forum going.
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 182
Reputation: alpha_foobar is an unknown quantity at this point 
Solved Threads: 3
alpha_foobar's Avatar
alpha_foobar alpha_foobar is offline Offline
Junior Poster

Re: Lumping C and C++ together..

 
0
  #2
May 6th, 2005
I'd say C/C++ are different in culture and paradigm.... But I'd not say they are completely different.. for one if you programme in C you typically use a compiler or IDE that also fully supports C++... essentially allowing your code to be a mixture of C and C++ if you want to... and sometimes even if you don't.

And a difference in paradigm is not really specific to a language... you can programme OO in C and likewise you can programme procedurally in C++.
Reply With Quote Quick reply to this message  
Join Date: Aug 2003
Posts: 117
Reputation: subtronic is an unknown quantity at this point 
Solved Threads: 0
subtronic's Avatar
subtronic subtronic is offline Offline
Junior Poster

Re: Lumping C and C++ together..

 
0
  #3
May 6th, 2005
[QUOTE=alpha_foobar]I'd say C/C++ are different in culture and paradigm.... But I'd not say they are completely different.. for one if you programme in C you typically use a compiler or IDE that also fully supports C++... essentially allowing your code to be a mixture of C and C++ if you want to... and sometimes even if you don't.
[QUOTE]

Mixing C with C++ code is generally frowned upon. I really don't want to argue and split hairs.

And a difference in paradigm is not really specific to a language... you can programme OO in C and likewise you can programme procedurally in C++.
C was _designed_ as a procedural language, C++ was _designed_ as an [pseudo] object-oriented language. They are fundamentally different in their higher-level approach.
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 182
Reputation: alpha_foobar is an unknown quantity at this point 
Solved Threads: 3
alpha_foobar's Avatar
alpha_foobar alpha_foobar is offline Offline
Junior Poster

Re: Lumping C and C++ together..

 
0
  #4
May 6th, 2005
Sure, they are designed with a different paradigm in mind... but it doesn't necesarily make them completely different.

Alot of C++ source code thats around looks exactly like C... and most of the tips and tricks that apply to C++ also apply to C...
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,846
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 753
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Senior Bitch

Re: Lumping C and C++ together..

 
0
  #5
May 6th, 2005
Allow me to paraphrase and offer an official response.

>"C and C++ are different languages"
Yes they are. Properly written C will likely break when compiled as C++ for any non-trivial program, and properly written C++ is barely recognizable as "something like" C.

>"Most C++ looks like C"
Yes, but only because most C++ isn't written using the full capabilities of the language. You'd be surprised how many people write C using C++. The result is less than optimal because it wastes most of C++'s power and flexibility.

>"C++ tricks will usually work in C"
This is iffy. C++ tricks can be made to work in C, but the useful ones require a lot of work and ugliness. C tricks, on the other hand, can generally be used successfully in C++, but they are almost always inappropriate.

Official response to splitting the forums:

I don't see any need at this point to split the C/C++ forum into separate C and C++ forums. We don't get enough C questions to warrant such an action. In other words, there's not enough obvious confusion because most questions are focused on C++ and not C. Those that are focused on C typically make it clear through code or comment.

A common drawback to separating C and C++ forums is that many people don't know the difference between the two languages and will pick a forum at random, or cross-post to both, thus defeating the purpose of splitting the forums in the first place.

To get the general feeling on this issue, I'll start a poll and see what everyone thinks, because you do make legitimate points.
New members chased away this month: 4
Reply With Quote Quick reply to this message  
Join Date: Aug 2003
Posts: 117
Reputation: subtronic is an unknown quantity at this point 
Solved Threads: 0
subtronic's Avatar
subtronic subtronic is offline Offline
Junior Poster

Re: Lumping C and C++ together..

 
0
  #6
May 6th, 2005
Originally Posted by Narue
To get the general feeling on this issue, I'll start a poll and see what everyone thinks, because you do make legitimate points.
Cool. And while the poll is going, I'll learn to use bbCode *doh*
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC