This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-24
Channels
- # admin-announcements (2)
- # beginners (5)
- # boot (29)
- # cider (46)
- # cljsjs (1)
- # clojure (19)
- # clojure-quebec (1)
- # clojure-russia (73)
- # clojure-spec (30)
- # clojure-uk (23)
- # clojurescript (35)
- # datascript (12)
- # datomic (7)
- # emacs (26)
- # hoplon (168)
- # leiningen (7)
- # off-topic (2)
- # om (32)
- # perun (8)
- # protorepl (8)
- # ring (45)
- # specter (10)
- # test-check (2)
- # yada (6)
@stathissideris: 1) I haven’t worked on this for a while
@tonsky: I’m using datascript to analyze clojure code, so it’s a rule for matching macros that I’m trying to make:
[(macro ?def ?name)
(top-level-fn-or-macro ?def ?name)
(?do :statements ?def)
(?do :op :do)
(?do :statements ?set-macro)
(?set-macro :op :instance-call)
;;(?set-macro :method 'setMethod) ;;TODO not possible with symbols
;;TODO also match order when available
(?do :ret ?ret)
(?ret :op :the-var)]
it works as is, but i’d like it to be more specific
i.e. to include the commented-out part
btw, you can see datascript for querying clojure code in action here, https://github.com/stathissideris/positano/blob/master/examples/test_coverage.clj#L23-L50
it sort of works, but the lack of not
and not being able to match symbols are a bit limiting
@tonsky: ok, thanks, I’ll try and make a minimal example that demonstrates the problem
@tonsky: do you think implementing not
would be hard for someone very competent with clojure but new to datascript? I’m considering giving it a try