Fork me on GitHub
#unrepl
<
2017-06-05
>
plexus09:06:40

👋

cgrand09:06:08

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

cgrand09:06:59

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

cgrand09:06:18

I may be wrong ofc

plexus09:06:11

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.

plexus09:06:50

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

cgrand09:06:37

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...

plexus10:06:25

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

cgrand12:06:40

That’s messy.

cgrand12:06:23

I have to derive LineNumberingPushbackReader bleh