Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: Rusty's mes...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 22 of 22 Topic 26077 of 26967
Post > Topic >>

Re: Rusty's message to C++ programmers (C or C++)

by "Mike Schilling" <mscottschilling@[EMAIL PROTECTED] > May 6, 2008 at 10:26 PM

brad wrote:
>
> I chose to learn C++ because of the options it provides... the
> complexity that you refer to. I can do old-fa****oned C, OOP,
> sequential, functional, etc. I can do char arrays or use strings. 
> I'm
> proficient in Python and Ruby and I like them very much, but there
> are times when I need native, compiled code for performance and
> efficiency reasons... when that happens I normally use C++ in a C
> like manner. C++ does not force me into a certain programming
> paradigm. That's what I like most about it. I don't think it is a
> better C, IMO it's C with more options... use them if you like, but
> you don't have to... and if you do not need the additional options,
> then just stick with C. They are so similar that it's not really
> worth arguing about.

Note that function prototypes, which were a significant hole in C's 
strong typing [1], originated with C++.

Hypothetically, if I were going to program in C++-like C, I'd still 
use cl***** to provide data-hiding and encapsulation, but I'd do 
without (at least)

* operator overloading
* virtual functions
* virtual base cl*****
* templates

Am I leaving anything out?

1. This isn't just a theoretical opinion.  I used to work on a very 
large suite of C applications, and invalid parameter types were a 
common source of errors, particularly where they were "close enough" 
on the platform we were developing on, but not on some of the ones we 
****ted to.
 




 22 Posts in Topic:
Rusty's message to C++ programmers (C or C++)
Raz <osjdf@[EMAIL PROT  2008-05-05 18:23:50 
Re: Rusty's message to C++ programmers (C or C++)
Ian Collins <ian-news@  2008-05-06 10:27:14 
Re: Rusty's message to C++ programmers (C or C++)
Razi<lsdop@[EMAIL PROT  2008-05-05 18:52:48 
Re: Rusty's message to C++ programmers (C or C++)
"Peter Duniho"   2008-05-05 16:40:04 
Re: Rusty's message to C++ programmers (C or C++)
Razii <erterte@[EMAIL   2008-05-05 22:34:43 
Re: Rusty's message to C++ programmers (C or C++)
CBFalconer <cbfalconer  2008-05-05 20:19:18 
Re: Rusty's message to C++ programmers (C or C++)
Razii <drter@[EMAIL PR  2008-05-05 22:23:39 
Re: Rusty's message to C++ programmers (C or C++)
CBFalconer <cbfalconer  2008-05-05 22:57:19 
Re: Rusty's message to C++ programmers (C or C++)
"Mike Schilling"  2008-05-05 20:51:12 
Re: Rusty's message to C++ programmers (C or C++)
Razi <lsajdf@[EMAIL PR  2008-05-06 00:29:59 
Re: Rusty's message to C++ programmers (C or C++)
"Mike Schilling"  2008-05-05 23:37:03 
Re: Rusty's message to C++ programmers (C or C++)
Razii <hjgj@[EMAIL PRO  2008-05-06 03:34:45 
Re: Rusty's message to C++ programmers (C or C++)
Keith Thompson <kst-u@  2008-05-06 00:55:40 
Re: Rusty's message to C++ programmers (C or C++)
santosh <santosh.k83@[  2008-05-06 14:25:45 
Re: Rusty's message to C++ programmers (C or C++)
Razii <gjtrsds@[EMAIL   2008-05-07 02:01:21 
Re: Rusty's message to C++ programmers (C or C++)
"Chris Thomasson&quo  2008-05-05 23:36:50 
Re: Rusty's message to C++ programmers (C or C++)
"Chris Thomasson&quo  2008-05-06 00:07:34 
Re: Rusty's message to C++ programmers (C or C++)
"Chris Thomasson&quo  2008-05-05 15:46:18 
Re: Rusty's message to C++ programmers (C or C++)
"cr88192" <c  2008-05-06 16:06:07 
Re: Rusty's message to C++ programmers (C or C++)
"Chris Thomasson&quo  2008-05-06 00:06:17 
Re: Rusty's message to C++ programmers (C or C++)
brad <byte8bits@[EMAIL  2008-05-06 10:38:20 
Re: Rusty's message to C++ programmers (C or C++)
"Mike Schilling"  2008-05-06 22:26:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 6:47:12 CDT 2008.