> import os;proc main = (let file = paramstr(1);(for line in file.lines:(echo line; if line == "": return)))
Yeah, bliss-style, you know in docs it isn't made clear that that works but i sensed that would.
> Random thought: it shouldn't be too hard to write a formatting tool that translates braces to indentation and vice versa. But I have yet to see a project like this for Nim.
It's a hour-long "project" if you don't care about how to treat pragma annotations. I did just that.
Yeah, bliss-style, you know in docs it isn't made clear that that works but i sensed that would.
> Random thought: it shouldn't be too hard to write a formatting tool that translates braces to indentation and vice versa. But I have yet to see a project like this for Nim.
It's a hour-long "project" if you don't care about how to treat pragma annotations. I did just that.