minor cleanups
This commit is contained in:
parent
5dc83d0c8f
commit
c682671fea
3 changed files with 8 additions and 18 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue