Promote "echo" syntax without parenthesis
This commit is contained in:
parent
4246f660ea
commit
cd574d1976
7 changed files with 93 additions and 93 deletions
|
|
@ -204,9 +204,9 @@ for any type:
|
|||
|
||||
.. code-block:: nim
|
||||
|
||||
echo("abc".len) # is the same as echo(len("abc"))
|
||||
echo("abc".toUpper())
|
||||
echo({'a', 'b', 'c'}.card)
|
||||
echo "abc".len # is the same as echo len("abc")
|
||||
echo "abc".toUpper()
|
||||
echo {'a', 'b', 'c'}.card
|
||||
stdout.writeLine("Hallo") # the same as writeLine(stdout, "Hallo")
|
||||
|
||||
(Another way to look at the method call syntax is that it provides the missing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue