processing / processing/processing-website
Compound assignment expressions described as being equivalent to statements
还没有人认领这个 Issue。
- 主要语言
- MDX
- 星标
- 90
- 派生
- 122
- 平均合并
- 1 小时 43 分钟
- 30 天内合并 PR
- 3
描述
Issue description
The reference has the following to say on += :
Combines addition with assignment. The expression
a+=bis equivalent toa=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
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
打开 processing.org/reference/addassign.html 中受影响的参考页面,检查关于 += 的措辞。更新说明,使其区分复合赋值表达式和赋值语句,包括其返回值;将隐式转换作为次要细节说明。
由索引模型根据 Issue 内容生成。
评估
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 50/100