processing / processing/processing-website

Compound assignment expressions described as being equivalent to statements

オープン
#362 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
MDX
スター
90
フォーク
122
平均マージ
1時間 43分
マージ済み PR(30日)
3

説明

Issue description

The reference has the following to say on += :

Combines addition with assignment. The expression a+=b is equivalent to a=a+b.

The biggest problem is that the expression a+=b has a return value (namely a+b), so it
can be used as a part of a larger expression. The statement a=a+b has no return value
and can not be used as part of a larger expression>

As a smaller problem a+=b involves an implicit cast, but that belongs to the detail department.

For students learning to program, it is important to be clear about the distinction between
expressions and statements, so I suggest a rewording that makes it clear that a+=b
is an expression.

URL(s) of affected page(s)

https://processing.org/reference/addassign.html

Proposed fix

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

processing.org/reference/addassign.html の該当するリファレンスページを開き、+= の文言を確認してください。複合代入式と代入文を、その戻り値も含めて区別するように説明を更新してください。暗黙のキャストについては二次的な詳細として記載してください。

索引モデルが issue の本文から書いたものです。

評価

領域
documentation
issue の種類
ドキュメント
難易度
1/5
見積もり時間
1時間未満
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
50/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。