Skip to content

Commit

Permalink
Documentation only (nim-lang#15968)
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq authored Nov 15, 2020
2 parents 122f22d + 1b9f37c commit 5ccfc8c
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion doc/manual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Nim Manual
.. contents::


"Complexity" seems to be a lot like "energy": you can transfer it from the
"Complexity" seems to be a lot like "energy": you can transfer it from the
end-user to one/some of the other players, but the total amount seems to remain
pretty much constant for a given task. -- Ran

Expand Down Expand Up @@ -313,6 +313,32 @@ it was not case-sensitive and underscores were ignored and there was not even a
distinction between ``foo`` and ``Foo``.


Stropping
---------

If a keyword is enclosed in backticks it loses its keyword property and becomes an ordinary identifier.

Examples

.. code-block:: nim
var `var` = "Hello Stropping"
.. code-block:: nim
type Type = object
`int`: int
let `object` = Type(`int`: 9)
assert `object` is Type
assert `object`.`int` == 9
var `var` = 42
let `let` = 8
assert `var` + `let` == 50
const `assert` = true
assert `assert`
String literals
---------------

Expand Down

0 comments on commit 5ccfc8c

Please sign in to comment.