🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #2011

Re: Should I learn C or C++ first?

#2011
From: Pete Becker
Date: Sat, 26 Aug 1995 15:57
27 lines
1597 bytes
In article <41ki32$p4t@deyke3.fc.hp.com>, rainer@deyke3.fc.hp.com says...
>
>Phil Martin u (mart4678@mach1.wlu.ca) wrote:
>: Rainer Deyke (rainer@deyke3.fc.hp.com) wrote:
>: : typedefs are for idiots.
>
>: Forgive me if this is a silly (or "idiotic) question, but what's wrong
>: with typedefs? I prefer how my code looks when I use them, are they 
>: considered bad style, do they slow down the program, or is Mr. Deyke just
>: overstating a personal preference?
>
>Well, I prefer explicit types because they are so much clearer.  I
>consider typedefs to be extremely bad style, but I suppose it is a
>matter of personal preference.  The point I was making is that typedefs
>aren't necessary in C any more than in C++.  Sorry if I offended you.

"So much clearer"? Really? Which of these two is easier to read?

typedef void (*sigfunc)(int);
sigfunc signal(int sig, sigfunc func);

or

void (*signal(int sig, void (*func)(int)))(int);

I am not an idiot, and I will always use the first form rather than the 
second. Good code is written clearly, not cleverly.
Technical Details
Message-ID: <41nga5$qau@druid.borland.com>
Path: arc1-ca.pugleaf.net!druid.borland.com!usenet
References: <40o2ee$aqp@deyke3.fc.hp.com> <DDIE24.Hqw@info.uucp> <41ki32$p4t@deyke3.fc.hp.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!druid.borland.com!usenet
From: pete@borland.com (Pete Becker)
Newsgroups: rec.games.programmer,comp.lang.c++
Subject: Re: Should I learn C or C++ first?
Date: 26 Aug 1995 15:57:57 GMT
Organization: Borland International
Message-ID: <41nga5$qau@druid.borland.com>
References: <40o2ee$aqp@deyke3.fc.hp.com> <DDIE24.Hqw@info.uucp> <41ki32$p4t@deyke3.fc.hp.com>
NNTP-Posting-Host: sbcandau.borland.com
Mime-Version: 1.0
Content-Type: Text/Plain; charset=ISO-8859-1
X-Newsreader: WinVN 0.99.5