On Fri, Feb 22, 2019 at 10:55:31AM +0000, Balázs Lengyel wrote:
> Do people really use enum names with whitespace within?
> I always had the feeling that the name of the enum is like an identifier, so
> it should follow maybe not the exact same but at least similar rules.
> 
> When such an enum name is translated into a programing language AFAIK the
> translation needs to replace the spaces with something.

Not just spaces. Tool implementors will have to address this and what
needs special handling varies from target language to target language
(some target languages or implementations of target languages also
have interesting length contraints).

I think it is fine if BCPs like RFC 8407 provide guidelines that
people should avoid characters that are likely to be problematic but
the YANG specification is relatively clear that YANG itself puts
little constraints on such names (and hence tool makers in charge
to handle this).

/js

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>

_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to