From dev-return-81499-apmail-cocoon-dev-archive=cocoon.apache.org@cocoon.apache.org Sun Nov 06 08:37:35 2005 Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 92414 invoked from network); 6 Nov 2005 08:37:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Nov 2005 08:37:32 -0000 Received: (qmail 99889 invoked by uid 500); 6 Nov 2005 08:37:29 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 99824 invoked by uid 500); 6 Nov 2005 08:37:29 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 99813 invoked by uid 99); 6 Nov 2005 08:37:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Nov 2005 00:37:29 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [195.130.132.56] (HELO adicia.telenet-ops.be) (195.130.132.56) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Nov 2005 00:37:22 -0800 Received: from localhost (localhost.localdomain [127.0.0.1]) by adicia.telenet-ops.be (Postfix) with SMTP id EECE338258 for ; Sun, 6 Nov 2005 09:37:06 +0100 (CET) Received: from [192.168.2.2] (d54C2BCEF.access.telenet.be [84.194.188.239]) by adicia.telenet-ops.be (Postfix) with ESMTP id D754938300 for ; Sun, 6 Nov 2005 09:37:06 +0100 (CET) Subject: Re: Other ID naming proposals (was Re: CForms widget ID naming) From: Bruno Dumon To: dev@cocoon.apache.org In-Reply-To: <8A3B75B1-F40A-46AC-A31E-7EEE69A7DA66@apache.org> References: <4369A459.1030805@apache.org> <4369CE73.8040803@apache.org> <4369D4F1.5000808@student.tuwien.ac.at> <4369D9B2.70904@apache.org> <4369DCDF.6090407@apache.org> <4369E5AC.7070903@apache.org> <436AB4AC.1060702@agssa.net> <436AFB07.5010706@gmx.de> <436AFFE4.2040406@agssa.net> <436B2A41.3020409@apache.org> <436B9490.3050701@agssa.net> <436BEE39.5020701@apache.org> <436C6367.4080708@apache.org> <8A3B75B1-F40A-46AC-A31E-7EEE69A7DA66@apache.org> Content-Type: text/plain Date: Sun, 06 Nov 2005 09:37:06 +0100 Message-Id: <1131266226.7064.15.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Sat, 2005-11-05 at 11:20 +0100, Ugo Cei wrote: > Il giorno 05/nov/05, alle ore 08:46, Sylvain Wallez ha scritto: > > >> So let's make other proposals. Let's consider wiget > >> "foo.bar" (e.g. a fd:field in a fd:group) and the ID of its . > >> - "foo.bar..input": the '.' is doubled, which can never conflict > >> with a widget's full name > >> - "foo.bar._input": generated element's name starts with a > >> character that we can forbid as the first character of widget names > >> > >> I prefer the first one (double '.') which is IMO more readable > >> than the second. > > > > Another one, which looks more natural: "foo.bar.input.": the > > trailing '.' ensures it cannot conflict with a widget's full name > > The fact that it is not that readable might be a plus. The problem > with double dots or a dot at the end is that it's easy to miss when > reading the code. an extra '_' sticks out more and won't be missed as > easily. agreed, +1 for the underscore -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center bruno@outerthought.org bruno@apache.org