| OLD | NEW |
| 1 Sky Style Guide | 1 Sky Style Guide |
| 2 =============== | 2 =============== |
| 3 | 3 |
| 4 In general, follow our [Design Principles](design.md) for all code. | 4 In general, follow our [Design Principles](design.md) for all code. |
| 5 | 5 |
| 6 | 6 |
| 7 Dart | 7 Dart |
| 8 ---- | 8 ---- |
| 9 | 9 |
| 10 In general, follow the [Dart style | 10 In general, follow the [Dart style |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 > For example, | 90 > For example, |
| 91 > ```dart | 91 > ```dart |
| 92 > new EdgeDims.symmetric(horizontal: 8.0); | 92 > new EdgeDims.symmetric(horizontal: 8.0); |
| 93 > ``` | 93 > ``` |
| 94 > ...rather than: | 94 > ...rather than: |
| 95 > ```dart | 95 > ```dart |
| 96 > new EdgeDims(0.0, 8.0, 0.0, 8.0); | 96 > new EdgeDims(0.0, 8.0, 0.0, 8.0); |
| 97 > ``` | 97 > ``` |
| 98 | 98 |
| 99 | 99 |
| 100 Use for-in loops rather than forEach() where possible, since that |
| 101 saves a stack frame per iteration. |
| 102 |
| 103 |
| 100 C++ | 104 C++ |
| 101 --- | 105 --- |
| 102 | 106 |
| 107 Put spaces around operators in expressions. |
| 108 |
| 103 | 109 |
| 104 Java | 110 Java |
| 105 ---- | 111 ---- |
| 106 | 112 |
| OLD | NEW |