GNU+Linux command memo

Nim : CamelCase vs slug_style

Le langage de programmation Nim a réglé la question du style de nommage des variables en adoptant un fonctionnement qui rend le débat inutile.

There are only two hard things in computer science: cache invalidation and naming things. — Phil Karlton

Except for the first letter, identifiers in Nim are compared in a case-insensitive manner, and underscores are ignored.


const useHttps = true
assert useHttps == useHttps
assert useHTTPS == useHttps
assert use_https == useHttps