minor cleanups

This commit is contained in:
Andreas Rumpf 2018-12-11 23:07:36 +01:00
commit c682671fea
3 changed files with 8 additions and 18 deletions

View file

@ -104,7 +104,7 @@ Advanced options:
value = number of processors (0 for auto-detect)
--incremental:on|off only recompile the changed modules (experimental!)
--verbosity:0|1|2|3 set Nim's verbosity level (1 is default)
--errorMax:int stop after n errors in semantic pass; 0 means unlimited
--errorMax:N stop compilation after N errors; 0 means unlimited
--experimental:$1
enable experimental language feature
-v, --version show detailed version information

View file

@ -263,17 +263,8 @@ Take advantage of no implicit bool conversion
doAssert isValid() == true
doAssert isValid() # preferred
.. _immediately_invoked_lambdas:
Immediately invoked lambdas (https://en.wikipedia.org/wiki/Immediately-invoked_function_expression)
.. code-block:: nim
let a = (proc (): auto = getFoo())()
let a = block: # preferred
getFoo()
.. _design_for_mcs:
Design with method call syntax (UFCS in other languages) chaining in mind
Design with method call syntax chaining in mind
.. code-block:: nim