This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-16
Channels
- # aleph (4)
- # bangalore-clj (10)
- # beginners (39)
- # boot (24)
- # cljs-dev (66)
- # cljsrn (79)
- # clojure (39)
- # clojure-italy (7)
- # clojure-russia (6)
- # clojure-spec (4)
- # clojure-uk (1)
- # clojurescript (91)
- # core-async (1)
- # core-typed (2)
- # datomic (49)
- # hoplon (42)
- # lumo (2)
- # nyc (1)
- # off-topic (1)
- # parinfer (20)
- # pedestal (2)
- # reagent (4)
- # rum (14)
- # vim (2)
@shaunlebron Awesome, thanks. I think I have the changes ported to my internal version of parinfer, I’ll get the tests over tomorrow and try them out.
@cfleming: you mean parinfer-jvm?
@shaunlebron My internal version has diverged from that somewhat.
I wanted to get the changes in there to actually try it out properly before I spent the time migrating to something that has no known actual clients 🙂
I’m also planning to write something that records the changes made while editing code, to get a better idea of how to calculate the changes array.
When a command creates overlapping changes, it’s actually difficult to know what to do.
I can’t seem to remember the overlapping changes example
I don’t think we’ve ever discussed one, but I believe when I initially investigated this idea I found that it was quite common.
I’m planning to log all the changes while editing some code to get a better idea of when it might happen.
Imagine that some command creates a change to some range of text, and then makes another change inside that range somewhere.
interesting, having a hard time to imagining an example, let me know when your logs catch one!
I bet this could do it: https://twitter.com/CursiveIDE/status/879504166237818880
yikes
I’d be tempted to avoid that problem somehow
Cursive, after performing a paredit command, usually reformats the form. That could also create overlapping changes.
my gut is that when a change intersects another within the current batch, it should probably go into a new batch to run afterward