Skip to content

language.operators.precedence.phpの日本語訳に誤訳がある可能性 #37

@saitoyoshi

Description

@saitoyoshi

お世話になっております。issueに登録すること自体が初めてなので、なにか不手際があったら申し訳ありません。

元ページ:
https://www.php.net/manual/en/language.operators.precedence.php
該当ページ:https://www.php.net/manual/ja/language.operators.precedence.php

演算子の優先順位の表の7行目あたりで、
演算子(+ - .)の追加情報のところに「(単項の + と -),」
とありますが、元ページだと、ここが、
(binary + and -)に対応しているので、2項演算子的な意味が正しい情報ではないでしょうか?

+,-が単項の演算子として用いられる場合と、2項演算子的に用いられる場合に優先順位が異なるということだと思います。

よろしくお願いいたします。

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingresolvedThis issue is marked resolved, will closed unless no mistake not found.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions