Re: [YANG] 7.1.5 import statement
Andy Bierman <ietf@andybierman.com> Wed, 09 January 2008 17:35 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 1JCepj-0003VO-OJ; Wed, 09 Jan 2008 12:35:20 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43)
id 1JCeph-0003VC-Oj
for yang-confirm+ok@megatron.ietf.org; Wed, 09 Jan 2008 12:35:17 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
by megatron.ietf.org with esmtp (Exim 4.43) id 1JCeph-0003V3-F3
for yang@ietf.org; Wed, 09 Jan 2008 12:35:17 -0500
Received: from smtp118.sbc.mail.sp1.yahoo.com ([69.147.64.91])
by ietf-mx.ietf.org with smtp (Exim 4.43) id 1JCeph-0006kK-1b
for yang@ietf.org; Wed, 09 Jan 2008 12:35:17 -0500
Received: (qmail 36194 invoked from network); 9 Jan 2008 17:35:16 -0000
Received: from unknown (HELO ?192.168.0.10?) (andybierman@att.net@68.120.84.5
with plain)
by smtp118.sbc.mail.sp1.yahoo.com with SMTP; 9 Jan 2008 17:35:16 -0000
X-YMail-OSG: f1bieUUVM1m5hnOYLD4gOyZBtP2mYpTuWIuvigcR.h8Qnbjo
Message-ID: <478505D3.1060405@andybierman.com>
Date: Wed, 09 Jan 2008 09:35:15 -0800
From: Andy Bierman <ietf@andybierman.com>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
To: yang <yang@ietf.org>
Subject: Re: [YANG] 7.1.5 import statement
References: <4784F78B.5040000@andybierman.com>
<20080109172201.GA5298@elstar.local>
In-Reply-To: <20080109172201.GA5298@elstar.local>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: e5ba305d0e64821bf3d8bc5d3bb07228
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
Juergen Schoenwaelder wrote: > On Wed, Jan 09, 2008 at 08:34:19AM -0800, Andy Bierman wrote: > >> This section does not say anything about whether it is an >> error to import a non-existent module, if it is not used. >> The pyang program reports this as a fatal error. >> >> This gets into implementation details a little. >> A well-formed import that never gets used should be a warning. >> Consider implementations that do not actually find and compile >> the module for an import clause until the first time the prefix is used. > > I expect a compiler to complain if an import can not be found and I > expect a compiler to generate a warning if there is an import that is > not used. In general, we don't talk much about warnings so we might > choose to leave the generation of a warning for unused imports also an > implementation detail. > Fine. One compiler complains and continues, and another complains and exits. It would be nice if DM writers who invest time and money in YANG know what 'valid YANG' is, so they know what tools should accept or not. But we should not over-specify the DML, such as defining compiler warnings. > /js > Andy _______________________________________________ YANG mailing list YANG@ietf.org https://www1.ietf.org/mailman/listinfo/yang
- [YANG] 7.1.5 import statement Andy Bierman
- Re: [YANG] 7.1.5 import statement Juergen Schoenwaelder
- Re: [YANG] 7.1.5 import statement Andy Bierman
- Re: [YANG] 7.1.5 import statement Martin Bjorklund
- Re: [YANG] 7.1.5 import statement Juergen Schoenwaelder