Re: OT: Why is C so popular?
From: Steve Lamb (grey_at_dmiyu.org)
Date: 08/30/03
- Previous message: Paul Burkett: "IMAP with virtual users"
- In reply to: Alan Shutko: "Re: OT: Why is C so popular?"
- Next in thread: Alan Shutko: "Re: OT: Why is C so popular?"
- Reply: Alan Shutko: "Re: OT: Why is C so popular?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 29 Aug 2003 18:04:24 -0700 To: debian-user@lists.debian.org
On Fri, 29 Aug 2003 19:03:54 -0500
Alan Shutko <ats@acm.org> wrote:
> We try to hire people with a basic knowledge of the language.
Which does not negate the fact that stupid mistakes happen. The common
error of...
if cond
bar;
baz;
...in C can be avoided by the braces being there. Furthermore once you
get in the habit it really is no wasted effort. In fact it helps because you
just do it instead of "uhm, ok, this time I won't put braces, er, wait."
> I can see your concern with the fifteen different ways perl can
> represent ifs (at least the language doesn't have COME FROM) but this
> is a bit excessive? Do you also wrap if bodies in a few extra layers
> of parentheses, in case someone comes along and wants to add a || and
> forgets to?
No because that's generally on the same line and you can see plainly
whether it needs it or not.
--
Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
PGP Key: 8B6E99C5 | main connection to the switchboard of souls.
-------------------------------+---------------------------------------------
-- To UNSUBSCRIBE, email to debian-user-request@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- application/pgp-signature attachment: stored
- Previous message: Paul Burkett: "IMAP with virtual users"
- In reply to: Alan Shutko: "Re: OT: Why is C so popular?"
- Next in thread: Alan Shutko: "Re: OT: Why is C so popular?"
- Reply: Alan Shutko: "Re: OT: Why is C so popular?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|