unrepl

discussing specification of an edn-based repl and its implementations.
cgrand 2017-06-05T09:31:51.896888Z

@plexus you there?

plexus 2017-06-05T09:32:40.905922Z

👋

cgrand 2017-06-05T09:34:08.921736Z

It’s :from [line col] but I’d like to also have :offset and :len

cgrand 2017-06-05T09:34:59.931286Z

I believe it depends a lot on the usecase (repl buffer vs eval form from editor)

cgrand 2017-06-05T09:35:18.934888Z

I may be wrong ofc

plexus 2017-06-05T09:37:11.955502Z

for me the main thing I care about is figuring out which :eval corresponds with the form I just sent. I think keeping track of a position in the output stream is a good way to do that.

plexus 2017-06-05T09:37:50.962538Z

having file/line/col could be useful when evaluating things inside a buffer, but that's bookkeeping that the client can also do

cgrand 2017-06-05T09:42:37.014371Z

true... related question & consideration: should :set-source reset offset to zero? (no) and :set-source should communicate in a way or another when it starts to apply (if you send a :set-source concurrently with an eval...

plexus 2017-06-05T10:28:25.496706Z

reset offset: I think not necessary. A message that :set-source has become active seems like a good idea.

cgrand 2017-06-05T12:53:40.961277Z

That’s messy.

cgrand 2017-06-05T12:55:23.983682Z

I have to derive LineNumberingPushbackReader bleh