Migrated from tips-and-tricks v3
This commit is contained in:
parent
16d6d7ba94
commit
4367a5431c
|
@ -7,11 +7,11 @@ h1. Using reserved words as identifiers
|
||||||
* You can use the slanted quote string syntax if you need to use a reserved word as an identifier: <code>var `type`: int</code>
|
* You can use the slanted quote string syntax if you need to use a reserved word as an identifier: <code>var `type`: int</code>
|
||||||
|
|
||||||
h1. Tricks with conditional compilation
|
h1. Tricks with conditional compilation
|
||||||
<pre>
|
<pre><code>
|
||||||
const someFeature = True
|
const someFeature = True
|
||||||
|
|
||||||
when someFeature:
|
when someFeature:
|
||||||
const someSubFeature = true
|
const someSubFeature = true
|
||||||
else:
|
else:
|
||||||
const someSubFeature = false
|
const someSubFeature = false
|
||||||
</pre>
|
</code></pre>
|
||||||
|
|
Loading…
Reference in New Issue