From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Dale P. Smith" Newsgroups: gmane.lisp.guile.devel Subject: Re: #if vs #ifdef Date: Thu, 27 Mar 2003 07:48:05 -0500 Organization: Altus Technologies Corporation Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <20030327074805.1352f925.dsmith@altustech.com> References: <87brzxfi3j.fsf@raven.i.defaultvalue.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1048769523 7280 80.91.224.249 (27 Mar 2003 12:52:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 27 Mar 2003 12:52:03 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Mar 27 13:52:01 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18yWrR-0001si-00 for ; Thu, 27 Mar 2003 13:52:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18yWp7-00038c-07 for guile-devel@m.gmane.org; Thu, 27 Mar 2003 07:49:37 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18yWoV-0001ud-00 for guile-devel@gnu.org; Thu, 27 Mar 2003 07:48:59 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18yWoD-0001DI-00 for guile-devel@gnu.org; Thu, 27 Mar 2003 07:48:47 -0500 Original-Received: from borg.altus.cc ([208.40.56.34]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18yWoC-00017N-00 for guile-devel@gnu.org; Thu, 27 Mar 2003 07:48:40 -0500 Original-Received: from sparky (oh-strongsvillecadent1-1d-224.clvhoh.adelphia.net [68.70.204.224]) by borg-eth1.altus.cc (8.10.2/8.10.2) with SMTP id h2RCmW801578; Thu, 27 Mar 2003 07:48:32 -0500 Original-To: Rob Browning In-Reply-To: <87brzxfi3j.fsf@raven.i.defaultvalue.org> X-Mailer: Sylpheed version 0.8.10claws13 (GTK+ 1.2.10; i386-debian-linux-gnu) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2113 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2113 On Thu, 27 Mar 2003 00:18:08 -0600 Rob Browning wrote: > Their argument is that all > reasonable compilers will generate the same code either way, and using > C code rather than the preprocessor can substantially improve the > readability of the code and allow the C compiler to do more thorough > analysis of all code paths. I agree that nested #if's are a horrible thing to wade through, and it makes sense to do this. On the other hand, aren't there modes in emacs that allow you to hide the #if'ed out code? That would improve readability far more than if (..). I don't understand how it better for the compiler though. I would think using #if's effectively edits the code out of the way before the compiler has a chance to look at it. Using if (..) gives the compiler useless work to do. How is theis better? -Dale -- Dale P. Smith Senior Systems Consultant, | Treasurer, Altus Technologies Corporation | Cleveland Linux Users Group dsmith at altustech dot com | http://cleveland.lug.net 440-746-9000 x239 | _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel