From owner-freebsd-chat@FreeBSD.ORG Thu Apr 24 12:37:20 2003 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E891537B401 for ; Thu, 24 Apr 2003 12:37:20 -0700 (PDT) Received: from sccrmhc03.attbi.com (sccrmhc03.attbi.com [204.127.202.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FBF743F85 for ; Thu, 24 Apr 2003 12:37:20 -0700 (PDT) (envelope-from swear@attbi.com) Received: from localhost.localdomain (unknown[12.242.158.67]) by sccrmhc03.attbi.com (sccrmhc03) with ESMTP id <20030424193719003006cicle>; Thu, 24 Apr 2003 19:37:19 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.12.6/8.12.5) with ESMTP id h3OJbdsg033238; Thu, 24 Apr 2003 12:37:40 -0700 (PDT) (envelope-from swear@attbi.com) Received: (from jojo@localhost) by localhost.localdomain (8.12.6/8.12.5/Submit) id h3OJbPXt033233; Thu, 24 Apr 2003 12:37:25 -0700 (PDT) (envelope-from swear@attbi.com) X-Authentication-Warning: localhost.localdomain: jojo set sender to swear@attbi.com using -f To: David Cuthbert References: <5.0.2.1.1.20030422171035.01c5e258@popserver.sfu.ca> <5.0.2.1.1.20030422205617.0387b378@popserver.sfu.ca> <3EA5A53F.3016395C@mindspring.com> <3EA7441F.9080903@kanga.org> From: swear@attbi.com (Gary W. Swearingen) Date: 24 Apr 2003 12:37:24 -0700 In-Reply-To: <3EA7441F.9080903@kanga.org> Message-ID: <7rr87radqj.87r@localhost.localdomain> Lines: 24 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: chat@freebsd.org Subject: Re: Code layout and debugging time X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2003 19:37:21 -0000 David Cuthbert writes: > inline template T * MyContainer::foo() const > > Uh, yeah. Where's that function/method name again? :-) That's a big peeve of mine. Languages should have all declarations begin with the name of the thing being declared, so hunting for declarations is easier, especially in black & white. I haven't thought it through, but I'm guessing that an object-oriented lanugage like Python could be easily modified to simply have declarations look like assignments, my_fun = function(a,b,c), my_var = integer(32), etc. I wrote a couple of small programs using this macro #define __(x,y) y x so I could keep the non-name junk at the end. IIRC, it worked best (esthetically) to use "__()" around most non-control statements whether or not it was a declaration, but I didn't do enough programming to know if the improved readability was worth the trouble of using the macro. Unlikely, and it's no good for code to be shared with others, of course.