Коммит
d2ce27081a
|
@ -214,7 +214,6 @@ struct Composite<T> {
|
|||
|
||||
_Rationale:_ Omitting redundant type parameters clarifies the intent, and makes it obvious by contrast when the returned type takes different type parameters.
|
||||
|
||||
|
||||
#### Use whitespace around operator definitions
|
||||
|
||||
Use whitespace around operators when defining them. Instead of:
|
||||
|
@ -232,3 +231,7 @@ func <|< <A>(lhs: A, rhs: A) -> A
|
|||
```
|
||||
|
||||
_Rationale:_ Operators consist of punctuation characters, which can make them difficult to read when immediately followed by the punctuation for a type or value parameter list. Adding whitespace separates the two more clearly.
|
||||
|
||||
#### Translations
|
||||
|
||||
* [中文版](https://github.com/Artwalk/swift-style-guide/blob/master/README_CN.md)
|
||||
|
|
Загрузка…
Ссылка в новой задаче