Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Re: GCC is re-implementing in C++ and C discarded

Reply
Thread Tools

Re: GCC is re-implementing in C++ and C discarded

 
 
Jorgen Grahn
Guest
Posts: n/a
 
      08-26-2012
On Sat, 2012-08-25, Johannes Bauer wrote:
> On 25.08.2012 11:33, Nick Keighley wrote:
>
>>>> Because I do not want C++!
>>>
>>> And nobody forced you to. I merely asked and you respond with such a rant.

>>
>> he appreciates the useful-ness of standard containers but doesn't want
>> the rest of the baggage that comes with C++. Idiomatic C++ doesn't
>> look a lot like C.

>
> You are correct. However, it all depends on the usage. Nobody forces you
> to use virtual methods, operator overloading, function polymorphy and
> design patterns. They make the language look *very* different to C,
> which is probably what you were referring to with "idiomatic C++".
>
> However, one can also use C++ and just take advantage of containers,
> leaving the rest.


Well, not really. C++ features are interconnected. When you do your
container stuff, you'll sooner or later notice you want constructors,
some operator overloading, references ...

Some of the things you mentioned can be ignored though. Run-time
polymorphism (your "virtual methods" and "function polymorphy" above)
is pretty well isolated, and I usually don't bother with it because I
find the results hard to understand. Design patterns aren't forced
down your throat either -- it seems to me C++ programmers don't love
them nearly as much as the Smalltalk/Java/.NET people do.

> I would argue that this yields understandable syntax
> that even a non-C++-programmer can understand easily.


I'd put it less strongly: understandable, and not completely alien to
a C programmer. She'd need to study C++ first, but brainwashing would
not be necessary.

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GCC is re-implementing in C++ and C discarded lovecreatesbeauty C Programming 156 09-09-2012 08:12 AM
Re: GCC is re-implementing in C++ and C discarded Nomen Nescio C Programming 0 08-26-2012 10:34 AM
Cisco VPN client, packets beeing discarded and bypassed seansan Cisco 3 09-24-2006 10:50 AM
discarded iterator.next() at interactive global scope doesn't bump interator?? Bengt Richter Python 2 09-04-2005 12:17 PM
Linker Message: "discarded section" Hartmut Sbosny C++ 2 05-29-2005 12:20 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57