Skip to content

Commit

Permalink
Merge pull request #509 from buster-blue/patch-2
Browse files Browse the repository at this point in the history
Add `!` link early for the curious
  • Loading branch information
mtshiba authored May 2, 2024
2 parents 6945d0c + 16d3d83 commit 8fec98b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/EN/syntax/00_basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ First, let's do "Hello World".
print!("Hello, World!")
```

This is almost identical to Python and other languages in the same family. The most striking feature is the `!`, the meaning of which will be explained later.
This is almost identical to Python and other languages in the same family. The most striking feature is the `!`, the meaning of which will be explained [later](https://erg-lang.org/the-erg-book/07_side_effect.html#side-effects-and-procedures).
In Erg, parentheses `()` can be omitted unless there is some confusion in interpretation.
The omission of parentheses is similar to Ruby, but it is not possible to omit parentheses that can be interpreted in more than one way.

Expand Down
2 changes: 1 addition & 1 deletion doc/JA/syntax/00_basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
print!("Hello, World!")
```

Pythonや同系統の言語とほぼ同じです。目を引くのは`print`の後に付く`!`ですが、これの意味はおいおい説明します
Pythonや同系統の言語とほぼ同じです。目を引くのは`print`の後に付く`!`ですが、これの意味は[おいおい](https://erg-lang.org/the-erg-book/JA/07_side_effect.html)説明します
また、Ergでは解釈に紛れのない限り括弧`()`を省略することが出来ます。
括弧の省略ができるのはRubyと似ていますが、複数の解釈ができる括弧省略はできませんし、また引数が0個のときもPythonと同じく`()`の省略が出来ません。

Expand Down
2 changes: 1 addition & 1 deletion doc/zh_CN/syntax/00_basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
print!("Hello, World!")
```

这与 Python 和同一家族中的其他语言几乎相同。最显着的Trait是`!`后面会解释它的含义
这与 Python 和同一家族中的其他语言几乎相同。最显着的Trait是`!`[后面](https://erg-lang.org/the-erg-book/zh_CN/07_side_effect.html)会解释它的含义
在 Erg 中,括号 `()` 可以省略,除非在解释上有一些混淆
括号的省略与 Ruby 类似,但不能省略可以以多种方式解释的括号

Expand Down
2 changes: 1 addition & 1 deletion doc/zh_TW/syntax/00_basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
print!("Hello, World!")
```

這與 Python 和同一家族中的其他語言幾乎相同。最顯著的Trait是`!`后面會解釋它的含義
這與 Python 和同一家族中的其他語言幾乎相同。最顯著的Trait是`!`[后面](https://erg-lang.org/the-erg-book/zh_TW/07_side_effect.html)會解釋它的含義
在 Erg 中,括號 `()` 可以省略,除非在解釋上有一些混淆
括號的省略與 Ruby 類似,但不能省略可以以多種方式解釋的括號

Expand Down

0 comments on commit 8fec98b

Please sign in to comment.