parent
47037ebee3
commit
3d6f2b77b8
1 changed files with 4 additions and 0 deletions
|
|
@ -251,6 +251,10 @@ Another advantage is that it frees the programmer from remembering
|
||||||
the exact spelling of an identifier. The exception with respect to the first
|
the exact spelling of an identifier. The exception with respect to the first
|
||||||
letter allows common code like ``var foo: Foo`` to be parsed unambiguously.
|
letter allows common code like ``var foo: Foo`` to be parsed unambiguously.
|
||||||
|
|
||||||
|
Note that this rule also applies to keywords, meaning that ``notin`` is
|
||||||
|
the same as ``notIn`` and ``not_in`` (all-lowercase version (``notin``, ``isnot``)
|
||||||
|
is the preferred way of writing keywords).
|
||||||
|
|
||||||
Historically, Nim was a fully `style-insensitive`:idx: language. This meant that
|
Historically, Nim was a fully `style-insensitive`:idx: language. This meant that
|
||||||
it was not case-sensitive and underscores were ignored and there was not even a
|
it was not case-sensitive and underscores were ignored and there was not even a
|
||||||
distinction between ``foo`` and ``Foo``.
|
distinction between ``foo`` and ``Foo``.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue