From owner-freebsd-hackers Mon May 19 11:51:02 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA10744 for hackers-outgoing; Mon, 19 May 1997 11:51:02 -0700 (PDT) Received: from dg-rtp.dg.com (dg-rtp.rtp.dg.com [128.222.1.2]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id LAA10736 for ; Mon, 19 May 1997 11:50:59 -0700 (PDT) Received: by dg-rtp.dg.com (5.4R3.10/dg-rtp-v02) id AA25972; Mon, 19 May 1997 14:50:23 -0400 Received: from ponds by dg-rtp.dg.com.rtp.dg.com; Mon, 19 May 1997 14:50 EDT Received: from lakes.water.net (lakes [10.0.0.3]) by ponds.water.net (8.8.5/8.7.3) with ESMTP id NAA05000; Mon, 19 May 1997 13:22:37 -0400 (EDT) Received: (from rivers@localhost) by lakes.water.net (8.8.5/8.6.9) id NAA23263; Mon, 19 May 1997 13:29:47 -0400 (EDT) Date: Mon, 19 May 1997 13:29:47 -0400 (EDT) From: Thomas David Rivers Message-Id: <199705191729.NAA23263@lakes.water.net> To: bde@zeta.org.au, ponds!FreeBSD.ORG!hackers, ponds!uriah.heep.sax.de!j Subject: Re: Variable initialization Cc: ponds!FreeBSD.ORG!core Content-Type: text Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > >> Can someone tell me why this is called obfuscation ? > > With old compilers, it was a pessimization to initalize variables > unnecessarily or long before they are used. With modern compilers, > it defeats automatic checking for uninitialized variables and may > still prevent some optimizations. Err, umm; just a nit - I would note that it defeats the check by initializing the variable; thus, it's not uninitialized :-) :-) What optimizations were you considering? > A wrongly initialized variable > is worse than an initialized one since it can't be checked for. Oh - I'd have to agree with that one! > > >I've cc'ed the core team: we should IMHO make this sentence in > >style(9) less strict. My English ain't good enough for a better > >formulation... > > We already made it less strict. It is the one thing in the Lite2 > /usr/src/admin/style that someone felt strongly enough about to > say "DO NOT" do this. > > Bruce > - Dave Rivers -