From owner-freebsd-hackers Sat Jun 30 4:27: 3 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from roulen-gw.morning.ru (roulen-gw.morning.ru [195.161.98.242]) by hub.freebsd.org (Postfix) with ESMTP id 8E19837B407; Sat, 30 Jun 2001 04:26:55 -0700 (PDT) (envelope-from poige@morning.ru) Received: from NIC1 (seven.ld [192.168.11.7]) by roulen-gw.morning.ru (Postfix) with ESMTP id DFFE02D; Sat, 30 Jun 2001 19:26:53 +0800 (KRAST) Date: Sat, 30 Jun 2001 19:27:12 +0800 From: Igor Podlesny X-Mailer: The Bat! (v1.52 Beta/7) UNREG / CD5BF9353B3B7091 Organization: Morning Network X-Priority: 3 (Normal) Message-ID: <1806975199.20010630192712@morning.ru> To: Peter Pentchev Cc: freebsd-hackers@FreeBSD.ORG, freebsd-isp@FreeBSD.ORG Subject: Re[2]: Flight of the rat, living wreck..... In-Reply-To: <20010630140907.A947@ringworld.oblivion.bg> References: <754836544.20010630185133@morning.ru> <20010630140907.A947@ringworld.oblivion.bg> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >> // so here we start looking through the queue >> >> > ia != NULL >> >> // sanity (I'd have written just (ia)) > Yep, just (ia) would have worked, but style(9) mandates (ia != NULL), > which is much easier to understand :) Don't want to dispute about the 'right' style :), but :)) I prefer to say (read, write) if (it_is_okay) { ... } and not if (it_is_okay != 0) { ... } and the first is much more like using '? :', instead of 'if'. this is the C-spirit :) BTW, what do u think bout goto? ;)) (it's a joke, man 8-) What's concerning to showing differences between flags and pointers, if (the_next_node) { } if (the_next_node != NULL) { } yes, may be this is valuable, but practice shows that if you need to understand the code, you're to see the declarations and definitions. At least, you're to understand the context... And it's like dispute about Microsoft style (LPSRZ, achMyCharArray) and so on... in common words, the code shouldn't be written for all (this would be too expensive and stupid) it's to be written for programmers. My opinion: Programming languages are already too formalized, so syntax sugar is worth adding. :) > and follow at a glance (clearly > showing that ia is not a flag, but a pointer). > G'luck, > Peter p.s. Peter, it was off-topic :) -- Igor mailto:poige@morning.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message