parinfer

cfleming 2018-02-13T00:20:21.000028Z

@shaunlebron Would you care to comment on this bit of the thread here? https://groups.google.com/d/msg/cursive/ZJ4fcp3A988/erjJ1gFJBAAJ

cfleming 2018-02-13T00:20:44.000230Z

(there are some more replies to that part below)

shaunlebron 2018-02-13T00:21:04.000308Z

ah, indenting docstrings!

shaunlebron 2018-02-13T00:21:11.000151Z

i’ll think about it

shaunlebron 2018-02-13T00:21:46.000042Z

yeah, I don’t like multiline strings in clojure

shaunlebron 2018-02-13T00:22:45.000318Z

we have to preserve structure in front of a change, so we can’t shift multiline string indentation without breaking strings

shaunlebron 2018-02-13T00:23:04.000366Z

it would be fine with docstrings

shaunlebron 2018-02-13T00:23:15.000116Z

but there could be strings where that is not okay

cfleming 2018-02-13T00:23:35.000238Z

Yeah, and the fact that the docstrings are not HTML or similar makes them a real pain to indent when displaying them.

cfleming 2018-02-13T00:23:44.000011Z

Right, definitely.

shaunlebron 2018-02-13T00:23:56.000104Z

yeah, that ship has sailed for clojure

cfleming 2018-02-13T00:24:21.000202Z

Indeed, sadly.

shaunlebron 2018-02-13T00:24:22.000217Z

i’ve seen new clojure-based lisps where they make indentation significant in multiline strings, seems to be a common pain point

cfleming 2018-02-13T00:24:47.000141Z

That said, there are projects using markdown in their docstrings now, I’m planning to add an option to Cursive to display that.

cfleming 2018-02-13T00:25:04.000111Z

But even there indentation is significant.

shaunlebron 2018-02-13T00:45:53.000028Z

@cfleming: i replied in the thread, thanks for the headsup

cfleming 2018-02-13T00:46:04.000171Z

Great, thanks!

shaunlebron 2018-02-13T00:46:14.000255Z

wish I could find that Lisp that had stricter multiline string indentation

shaunlebron 2018-02-13T00:46:22.000161Z

i star too many repos

cfleming 2018-02-13T00:46:27.000224Z

Yeah, that’s a nice idea. Carp, maybe?

shaunlebron 2018-02-13T00:46:35.000250Z

i couldn’t find a syntax guide for it

shaunlebron 2018-02-13T00:46:49.000088Z

yeah, I thought it was carp, not sure though

cfleming 2018-02-13T00:47:22.000050Z

There are quite a few now. Carp and Pixie are the ones that spring to mind, but I’m sure there are more. Oh and Hy.

shaunlebron 2018-02-13T00:47:32.000208Z

it might be Hy

cfleming 2018-02-13T00:47:38.000041Z

Actually, Hy is probably a top contender due to its Python heritage.

shaunlebron 2018-02-13T00:48:51.000012Z

ha, I can’t spend anymore time tonight tracking this down

cfleming 2018-02-13T00:50:17.000307Z

I can’t find anything about it in Hy documentation.

cfleming 2018-02-13T00:50:32.000087Z

It’ll have to remain a mystery. Nice idea though.

tianshu 2018-02-13T03:30:14.000092Z

@shaunlebron is that transformChange will never return undefined?

shaunlebron 2018-02-13T03:52:27.000212Z

@doglooksgood yeah, safe to say it’ll never be undefined

shaunlebron 2018-02-13T03:52:35.000126Z

just guarding against bad plugin integration

tianshu 2018-02-13T03:53:52.000125Z

I think when porting, is very important to know immutable/mutable of variables, and what will return null;

tianshu 2018-02-13T03:55:37.000072Z

maybe I should port from parinfer-jvm?

tianshu 2018-02-13T03:56:07.000107Z

it's likely very old

shaunlebron 2018-02-13T03:56:16.000130Z

parinfer-jvm will be updated soon I think

shaunlebron 2018-02-13T03:56:41.000217Z

you will be the third person this week who needs it