This leads to more consistent formatting across entire Aiken programs. Before that commit, only long expressions would be formatted on a newline, causing non-consistent formatting and additional reading barrier when looking at source code. Programs also now take more vertical space, which is better for more friendly diffing in version control systems (especially git).
15 lines
204 B
Plaintext
15 lines
204 B
Plaintext
test sort_by_1() {
|
|
let xs =
|
|
[[4, 3, 2, 1], [2, 3, 4, 5]]
|
|
when xs is {
|
|
[[], ys] ->
|
|
False
|
|
[xs, []] ->
|
|
False
|
|
[[x, ..xs2], [y, ..ys2]] ->
|
|
True
|
|
_ ->
|
|
False
|
|
}
|
|
}
|