Update `STYLE`
ecce58346c7f6f934b9c6b0e077ee5a52d184116
1 parent
10d4bec0
STYLE
+1 -0
| 86 | 86 | ||
| 87 | 87 | FUNCTIONS |
|
| 88 | 88 | ||
| 89 | 89 | * Prefer methods on types to free functions. |
|
| 90 | 90 | * Avoid private helpers that are only used once. |
|
| 91 | + | * Avoid accessor functions. |
|
| 91 | 92 | * Functions should take the narrowest types needed as arguments, eg. don't take |
|
| 92 | 93 | `&User` if you only need `&UserId`. |
|
| 93 | 94 | ||
| 94 | 95 | TESTS |
|
| 95 | 96 |