avborup / avborup/linefeed

Convert to indentation-based blocks

Open
#6 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
6
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Much like Python.

Currently, we have:

```py
i = -1;
while (i = i + 1) < n {
j = i;
while (j = j + 1) < n {
part1 = rep[i] * rep[j] if rep[i] + rep[j] == 2020;

k = j;
while (k = k + 1) < n {
part2 = rep[i] * rep[j] * rep[k] if rep[i] + rep[j] + rep[k] == 2020;
};
};
};
```

But it should become the following (no curly braces, no required semicolons):

```py
i = -1
while (i = i + 1) < n:
j = i
while (j = j + 1) < n:
part1 = rep[i] * rep[j] if rep[i] + rep[j] == 2020

k = j
while (k = k + 1) < n:
part2 = rep[i] * rep[j] * rep[k] if rep[i] + rep[j] + rep[k] == 2020
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.