Re: [YANG] so many naming scopes

Balazs Lengyel <balazs.lengyel@ericsson.com> Fri, 04 January 2008 09:50 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 1JAjCb-0008GO-J3; Fri, 04 Jan 2008 04:50:57 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JAjCa-000872-FA for yang-confirm+ok@megatron.ietf.org; Fri, 04 Jan 2008 04:50:56 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JAjCT-0007Kq-J5 for yang@ietf.org; Fri, 04 Jan 2008 04:50:49 -0500
Received: from mailgw3.ericsson.se ([193.180.251.60]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1JAjCS-0003N7-1u for yang@ietf.org; Fri, 04 Jan 2008 04:50:49 -0500
Received: from mailgw3.ericsson.se (unknown [127.0.0.1]) by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id 0F788204A8; Fri, 4 Jan 2008 10:50:47 +0100 (CET)
X-AuditID: c1b4fb3c-aef95bb0000030cf-60-477e01761351
Received: from esealmw127.eemea.ericsson.se (unknown [153.88.254.122]) by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id A0EEE20DE2; Fri, 4 Jan 2008 10:50:46 +0100 (CET)
Received: from esealmw127.eemea.ericsson.se ([153.88.254.175]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Fri, 4 Jan 2008 10:50:46 +0100
Received: from [159.107.197.224] ([159.107.197.224]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Fri, 4 Jan 2008 10:50:46 +0100
Message-ID: <477E0175.7010500@ericsson.com>
Date: Fri, 04 Jan 2008 10:50:45 +0100
From: Balazs Lengyel <balazs.lengyel@ericsson.com>
User-Agent: Thunderbird 2.0.0.4 (X11/20070604)
MIME-Version: 1.0
To: Phil Shafer <phil@juniper.net>
Subject: Re: [YANG] so many naming scopes
References: <200801040435.m044ZkPE068099@idle.juniper.net>
In-Reply-To: <200801040435.m044ZkPE068099@idle.juniper.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 04 Jan 2008 09:50:46.0453 (UTC) FILETIME=[476F7E50:01C84EB7]
X-Brightmail-Tracker: AAAAAA==
X-Spam-Score: -1.0 (-)
X-Scan-Signature: b19722fc8d3865b147c75ae2495625f2
Cc: yang@ietf.org
X-BeenThere: yang@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
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

While the use of many naming-scopes is understandable for the compiler is it easy to understand 
for the reader ? IMHO no.
I like Andy's proposal.
Balazs

Phil Shafer wrote:
> Andy Bierman writes:
>> Yes, of course one naming scope (the term namespace is taken)
>> amongst siblings, except nested typedef and grouping names
>> cannot mask similar definitions within an ancestor node,
>> or globally within the same module.  (This part already in the draft.)
> 
> Isn't this dancing on the line of CLR?  Where's the logic of saying
> "don't do that" when there's really no ambiguity?  If I say "leaf 
> foo { .. } typedef foo { .. }", my use of "type foo" is clear.
> Is there a situation where isn't not clear to the compiler
> what is meant?  Are we trying to get the compiler to enforce
> style rules when the language proper doesn't require them?
> 
> Thanks,
>  Phil
> 
> 
> _______________________________________________
> YANG mailing list
> YANG@ietf.org
> https://www1.ietf.org/mailman/listinfo/yang

-- 
Balazs Lengyel                       Ericsson Hungary Ltd.
TSP System Manager
ECN: 831 7320                        Fax: +36 1 4377792
Tel: +36-1-437-7320     email: Balazs.Lengyel@ericsson.com


_______________________________________________
YANG mailing list
YANG@ietf.org
https://www1.ietf.org/mailman/listinfo/yang