if语句里面只有一行代码,也必须要加大括号?
Open
- Dominant language
- Kotlin
- Stars
- 30.8k
- Forks
- 8k
- PR merge metrics
- No merged PRs in 30d
Description
#75
今天在《代码整洁之道》(人民邮电出版社,韩磊翻译版本) 的时候,里面标准的代码实例是
if语句里面只有一行代码,没有加大括号。详见 第五章第五小节85页。
请问,阿里当时必须要加大括号是出于什么原因,为什么要这样做
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the referenced issue #75 and the cited section of chapter five, page 85, then compare that guidance with Alibaba's brace requirement. The work is complete when the project's rationale and the relationship between the two recommendations are documented or clarified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100