What's the intended/ideal multi-line formatting for the following?
a = {
b: c,
d: {
e: f,
},
}
I can't write multi-line records in the repl, but in a module the above fails to parse while the below doesn't:
a = {
b: c,
d: {
e: f,
},
}
That seems a little weird :/
I feel like the first example failing to parse is a bug... or maybe the second example successfully parsing is a bug instead! :laughing:
This way works and looks nice:
a =
{
b: c,
d: {
e: f,
},
}
I do think the first one not parsing is a bug.
Ooh, that's pretty and practical, thank you!
I'll report that parsing bug, then.
it's actually not a bug, unless we want to make the parser more complicated :big_smile:
which I guess we've never fully explored, so I'll post about it in #ideas > outdent parsing
Last updated: Jul 05 2025 at 12:14 UTC