[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [YANG] YANG syntax



On Fri, Mar 28, 2008 at 02:53:04PM +0100, Martin Bjorklund wrote:
 
> > - The "boolean" type in W3C and RELAX NG datatype libraries allow as
> > values either true/false or 1/0. Would it be a problem to allow this in
> > YANG, too?
> 
> I'll pass on this and see if Juergen will comment.

Allowing multiple representations for a given value of a type adds
quite some complexity since we then have to say what is the canonical
representation for comparisons and we have to explicit whether or when
implementation have to remember which representation was used. So I am
a big fan of one representation per value and since a a boolean type
has just two values, the boolean YANG type only has "true" and
"false".

/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 at ietf.org
https://www.ietf.org/mailman/listinfo/yang