This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-11
Channels
- # announcements (8)
- # beginners (17)
- # boot (1)
- # cider (20)
- # cljdoc (7)
- # cljs-dev (14)
- # clojure (62)
- # clojure-dev (16)
- # clojure-hamburg (1)
- # clojure-russia (2)
- # clojure-spec (22)
- # clojure-uk (15)
- # clojurebridge (1)
- # clojurescript (23)
- # core-async (4)
- # core-logic (17)
- # cursive (2)
- # datomic (4)
- # duct (1)
- # figwheel-main (40)
- # fulcro (15)
- # leiningen (1)
- # off-topic (27)
- # re-frame (3)
- # shadow-cljs (9)
- # specter (3)
- # sql (59)
I might just be dreaming up scenarios, but I’m thinking that tooling writers might want to highlight the symbol in the error message.
With the :data
, we have the symbol at hand, but you’d still have to parse the message if you wanted to highlight it.
the string “first argument to def must be a Symbol” is coming out of the compiler
nothing has changed there, that’s a hand-crafted Compiler message
so in this particular case, this is kind of outside the realm of what I’m working on (which is improving the categorical building and printing of exceptions)
the wrapper here is (separately) capturing def
as the symbol being compiled (this happens at a higher level)
I pushed current patch state up to https://dev.clojure.org/jira/browse/CLJ-2373 - does not address test regressions yet