parinfer

pez 2018-08-18T09:49:08.000100Z

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.

henrik 2018-08-18T12:37:06.000100Z

Yeah, that looks a bit wonky.

justinlee 2018-08-18T15:47:31.000100Z

@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]

justinlee 2018-08-18T15:47:52.000100Z

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

justinlee 2018-08-18T15:48:23.000100Z

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

henrik 2018-08-18T17:12:55.000100Z

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.