Subject: [netmod] Camel Case versus hyphenation

From: tom petch <[email-masked]>
Date: Fri, 31 Dec 2021 12:42:46 +0000

A number of protocols name protocol values using camel case, protocols such as TCP, BGP and PCEP (RFC5440).  YANG does not like camel case and so some YANG module authors put hyphens in instead, so that OpenWait and KeepWait become open-wait and keep-wait. (draft-ietf-pce-pcep-yang)  

I strongly believe that the YANG identifiers should follow the protocol identifiers but can see that the absence of camel case can make them harder to read, to follow, perhaps when part of a compound identifier such as peer-keepalive-timer.

Which is then better, openwait or open-wait?  Is there some factor that makes one preferable.

Tom Petch