Fork me on GitHub
#parinfer
<
2018-08-18
>
pez09:08:08

I notice that the source of ground truth behaves differently indenting subsequent lines when the argument is in a vector and when they are not. Not sure if I should file an issue or not, because it might be what is intended. Anyway, parinfer seems to prefer to line up the arguments also in the latter case when entering them the first time.

henrik12:08:06

Yeah, that looks a bit wonky.

justinlee15:08:31

@pez the issue is that in the second example, you have 2 elements from a list on the same line (bar and 1). in the first example you only have one element from the vector on the first line (1). you get the same behavior if you do this:

[foo 1
     2]

justinlee15:08:52

the only thing that is weird about it is that the autoindentation understands function invocations when you first type things in

justinlee15:08:23

so it initially lines things up the right way but doesn’t keep them that way

henrik17:08:55

You’re right, the result in Atom is also

(bar   1 
     2)
I overlooked that the 1 and 2 where not contained in a separate structure.