This commit is contained in:
parent
c56a6133bb
commit
1b9f37c6dc
1 changed files with 1 additions and 7 deletions
|
|
@ -316,13 +316,7 @@ distinction between ``foo`` and ``Foo``.
|
||||||
Stropping
|
Stropping
|
||||||
---------
|
---------
|
||||||
|
|
||||||
`Stropping <https://en.wikipedia.org/wiki/Stropping_(syntax)>`_
|
If a keyword is enclosed in backticks it loses its keyword property and becomes an ordinary identifier.
|
||||||
allows the same letter sequence to be used both as a keyword and as an identifier, this simplifies parsing and
|
|
||||||
`FFI <https://en.wikipedia.org/wiki/Foreign_function_interface>`_
|
|
||||||
with languages where that identifier is not a reserved keyword.
|
|
||||||
|
|
||||||
For example, allowing a variable named `if` without clashing with the keyword `if`.
|
|
||||||
In Nim, this is achieved via backticks, allowing any reserved word to be used as an identifier.
|
|
||||||
|
|
||||||
Examples
|
Examples
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue