Revision b10df4de
b/doc/dev-codestyle.rst | ||
---|---|---|
351 | 351 |
, value2 |
352 | 352 |
] |
353 | 353 |
|
354 |
For records, always add spaces around the braces and the equality sign. |
|
355 |
:: |
|
356 |
|
|
357 |
foo = Foo { fBar = "bar", fBaz = 4711 } |
|
358 |
|
|
359 |
foo' = Foo { fBar = "bar 2" |
|
360 |
, fBaz = 4712 |
|
361 |
} |
|
362 |
|
|
363 |
node' = node { ip = "127.0.0.1" } |
|
364 |
|
|
365 |
|
|
354 | 366 |
White space |
355 | 367 |
~~~~~~~~~~~ |
356 | 368 |
Like in Python, surround binary operators with one space on either side. Do no |
Also available in: Unified diff