This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-08
Channels
- # 100-days-of-code (4)
- # aws (1)
- # beginners (69)
- # business (1)
- # calva (1)
- # cider (10)
- # cljdoc (1)
- # cljs-dev (7)
- # clojure (49)
- # clojure-dev (4)
- # clojure-italy (2)
- # clojure-nl (11)
- # clojure-russia (2)
- # clojure-spec (7)
- # clojure-uk (64)
- # clojurescript (18)
- # clojurex (1)
- # core-async (11)
- # cursive (22)
- # datascript (7)
- # datomic (45)
- # editors (6)
- # emacs (7)
- # events (1)
- # fulcro (20)
- # graphql (1)
- # jobs (18)
- # jobs-discuss (132)
- # leiningen (2)
- # nyc (5)
- # off-topic (6)
- # onyx (2)
- # pedestal (3)
- # re-frame (8)
- # remote-jobs (6)
- # ring-swagger (2)
- # shadow-cljs (64)
- # specter (2)
- # tools-deps (4)
- # unrepl (1)
- # yada (3)
is there any reason why the return value of my other function was not highlighted at all?
@azzurite probably because it’s unreadable. I can’t immediately see why, but the :test(x)
would be my best bet.
In general, using properties like that will cause extreme weirdness in the printing.
I have a problem with parinfer breaking the structure. Introduced a few eaps ago
(let [{:keys [a 5]|} {}])
presses backspace (let [{:keys [a 5|} {}])
|
is caret
@azzurite I don’t know - it will depend on the details of what went wrong. At the end of the day I could debug and give you a detailed analysis of the cases you show me, but the advice is still going to be the same - don’t do that 🙂
@andreas862 That’s not new, it’s been in there for a long time. It’s a known parinfer problem. The issue is that parinfer can’t infer the parens correctly there since there’s no indentation to work from.
Both atom parinfer and the online demo of parinfer forces balance from what I can see
But it’s not clear cut, there are cases where forceBalance also creates real strangeness.
ah, I was looking at http://shaunlebron.github.io/parinfer/
Is there any support for having a clojure file that has access to all the rest of the projects namespaces and vars, but is outside of the source roots? The best I have found so far is to use a Scratch file for this, but is there a better way? Even if the REPL command window could be backed by a file, and we could edit it like any other file, that would be great too. @cfleming