diff --git a/Tips-and-tricks.textile b/Tips-and-tricks.textile index f4e4f48..9b7c569 100644 --- a/Tips-and-tricks.textile +++ b/Tips-and-tricks.textile @@ -1,3 +1,5 @@ +h1. Coding guidelines + * Use the implicit "result" variable and try to avoid "return". * Do not use templates/macros when an inline proc suffices. * Do not use "nil" for strings and sequences. The procs of the standard library which misuse "nil" as an error value will be deprecated. @@ -7,11 +9,13 @@ 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: var `type`: int h1. Tricks with conditional compilation -

+
+
 const someFeature = True
 
 when someFeature:
   const someSubFeature = true
 else:
   const someSubFeature = false
-
+
+
\ No newline at end of file