Do we need to reduce our indention?
In recent discussion it seemed that some people may not be entirely happy with current levels of indentation perhaps particularly with when ..is?
(nim seems to get by with 2 spaces)
python requires at least one space of indentation but "defaults to 4"
From Fsharp Docs:
When indenting, at least one space is required. Your organization can create coding standards to specify the number of spaces to use for indentation; two, three, or four spaces of indentation at each level where indentation occurs is typical.
Currently I think that roc match's python
Based on playing with the compiler as it is...you're right it currentl accepts any level of indentation.
What exactly will it mean to default to four then?...just that that's what the format tool will do...if you don't specify something else, and that's what we will expect to find that people have done most often?
It's just an optional convention then, and that's how we would find most code to be written (unless someone chose otherwise)?
So even though there is really complete flexibility for personal projects one could still have the concern that code that follows the default standard could be pushed too far to the right.
...and therefore be annoying to read or edit.
Last updated: Jun 16 2026 at 16:19 UTC