I wasn't sure if I should make 2-space or 4-space indents the default style in Hebigo. Since I expect Hebigo to be mixed with Python often, I thought maybe I should stick with 4.
But I've decided that 2-space indents looks better in Hebigo. Forms that only have one layer nested in Python may have two in Hebigo, so it works out to look about the same. E.g. elif is at the same level as if in Python, but has to be nested in Hebigo, so the code block ends up indeted 4 spaces either way. Even if your editor doesn't automatically switch tab size for you, it's not hard to do 2 spaces with the space bar instead.
I wasn't sure if I should make 2-space or 4-space indents the default style in Hebigo. Since I expect Hebigo to be mixed with Python often, I thought maybe I should stick with 4.
But I've decided that 2-space indents looks better in Hebigo. Forms that only have one layer nested in Python may have two in Hebigo, so it works out to look about the same. E.g.
elif
is at the same level asif
in Python, but has to be nested in Hebigo, so the code block ends up indeted 4 spaces either way. Even if your editor doesn't automatically switch tab size for you, it's not hard to do 2 spaces with the space bar instead.