Re: [YANG] so many naming scopes
Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Wed, 09 January 2008 22:46 UTC
Return-path: <yang-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
by megatron.ietf.org with esmtp (Exim 4.43)
id 1JCjgz-0001F4-TI; Wed, 09 Jan 2008 17:46:37 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43)
id 1JCjgy-0001Et-NA
for yang-confirm+ok@megatron.ietf.org; Wed, 09 Jan 2008 17:46:36 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
by megatron.ietf.org with esmtp (Exim 4.43) id 1JCjgy-0001Ej-DO
for yang@ietf.org; Wed, 09 Jan 2008 17:46:36 -0500
Received: from hermes.jacobs-university.de ([212.201.44.23])
by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1JCjgw-0003l1-6O
for yang@ietf.org; Wed, 09 Jan 2008 17:46:36 -0500
Received: from localhost (demetrius.jacobs-university.de [212.201.44.32])
by hermes.jacobs-university.de (Postfix) with ESMTP id 2DFA98A24E;
Wed, 9 Jan 2008 23:46:33 +0100 (CET)
Received: from hermes.jacobs-university.de ([212.201.44.23])
by localhost (demetrius.jacobs-university.de [212.201.44.32])
(amavisd-new, port 10024)
with ESMTP id 11736-09; Wed, 9 Jan 2008 23:46:28 +0100 (CET)
Received: from elstar.local (elstar.iuhb02.iu-bremen.de [10.50.231.133])
by hermes.jacobs-university.de (Postfix) with ESMTP id 8DF868A39B;
Wed, 9 Jan 2008 23:46:28 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501)
id 7BD19460123; Wed, 9 Jan 2008 23:46:27 +0100 (CET)
Date: Wed, 9 Jan 2008 23:46:27 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Andy Bierman <ietf@andybierman.com>
Subject: Re: [YANG] so many naming scopes
Message-ID: <20080109224627.GE5390@elstar.local>
Mail-Followup-To: Andy Bierman <ietf@andybierman.com>,
"tom.petch" <cfinss@dial.pipex.com>, yang@ietf.org
References: <200801082230.m08MUP3O095222@idle.juniper.net>
<012701c852d5$ff6ffc60$0601a8c0@pc6>
<4784FD0D.6020103@andybierman.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4784FD0D.6020103@andybierman.com>
User-Agent: Mutt/1.5.17 (2007-11-01)
X-Virus-Scanned: amavisd-new 2.3.3 (20050822) at jacobs-university.de
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 8abaac9e10c826e8252866cbe6766464
Cc: yang@ietf.org
X-BeenThere: yang@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: j.schoenwaelder@jacobs-university.de
List-Id: YANG modeling Language for NETCONF <yang.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/yang>,
<mailto:yang-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/yang>
List-Post: <mailto:yang@ietf.org>
List-Help: <mailto:yang-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/yang>,
<mailto:yang-request@ietf.org?subject=subscribe>
Errors-To: yang-bounces@ietf.org
On Wed, Jan 09, 2008 at 08:57:49AM -0800, Andy Bierman wrote:
> Now you bring up a new twist:
>
> typedef typedef {
> type string;
> }
>
> leaf leaf {
> type typedef;
> }
>
> IMO, there needs to be guidelines (in the form of SHOULD NOT text)
> that says not to use YANG keywords for identifiers and not
> to use the same values for typedefs, groupings, and object names,
> even though it is allowed.
Usage guidelines and "coding styles" are valuable. But they should not
be part of the language itself. The example above is not ambiguous and
easy to parse for a machine - even though it might look stupid to most
humans.
I do remember the fun I had when C++ came along with the 'new'
keyword. The namespaces we have in YANG help to avoid such problems so
that we can add keywords to YANG without risking to break something.
/js
--
Juergen Schoenwaelder Jacobs University Bremen gGmbH
Phone: +49 421 200 3587 Campus Ring 1, 28759 Bremen, Germany
Fax: +49 421 200 3103 <http://www.jacobs-university.de/>
_______________________________________________
YANG mailing list
YANG@ietf.org
https://www1.ietf.org/mailman/listinfo/yang
- [YANG] so many naming scopes Andy Bierman
- Re: [YANG] so many naming scopes Martin Bjorklund
- Re: [YANG] so many naming scopes Andy Bierman
- Re: [YANG] so many naming scopes Phil Shafer
- Re: [YANG] so many naming scopes Martin Bjorklund
- Re: [YANG] so many naming scopes Balazs Lengyel
- Re: [YANG] so many naming scopes Andy Bierman
- RE: [YANG] so many naming scopes Bert Wijnen - IETF
- Re: [YANG] so many naming scopes Andy Bierman
- Re: [YANG] so many naming scopes Juergen Schoenwaelder
- Re: [YANG] so many naming scopes Andy Bierman
- Re: [YANG] so many naming scopes tom.petch
- Re: [YANG] so many naming scopes Phil Shafer
- Re: [YANG] so many naming scopes tom.petch
- Re: [YANG] so many naming scopes Andy Bierman
- Re: [YANG] so many naming scopes Phil Shafer
- Re: [YANG] so many naming scopes Juergen Schoenwaelder
- Re: [YANG] so many naming scopes Andy Bierman
- Re: [YANG] so many naming scopes Juergen Schoenwaelder
- Re: [YANG] so many naming scopes Phil Shafer
- Re: [YANG] so many naming scopes Balazs Lengyel
- Re: [YANG] so many naming scopes Juergen Schoenwaelder
- RE: [YANG] so many naming scopes Bert Wijnen - IETF