The 1st (= ?cd_paciente cd_paciente) is a binding (since there are no other on the local scope. The second (= ?cd_paciente cd_paciente) is a comparison because the binding is already established right ?
That is correct
Its beautiful . (error prone too) if i remove a char of ?cd_paciente I got two bindings
Yeah, i've wondered if the Clara compiler should warn on unused bindings...
this could be very handy
@geraldodev yeah, because ?binding-name
is just some arbitrary local name you want to give for the context
the warning isn’t a bad idea, @ethanc is a genius
I will log an issue for enhancement, when i get a few free seconds @mikerod
@mikerod the warnings from clj-kondo have improved a lot my experience with clojure.
@geraldodev I’ve started to play around with clj-kondo, but haven’t done so very seriously yet - it looks promising
for a Clara DSL thing though - not thinking it can help you much? like in the case of this variable binding thing?
I know it does have some pretty good extension points though - so can do some nice things
@mikerod I've asked on #clj-kondo if it's possible to lint the unused binding case
I think it's a work for a linter. But it's a very especific syntax. for macros that follows defn or def pattern you simply configure :lint-as on a config file like: {:lint-as {com.fulcrologic.fulcro.components/defsc clojure.core/defn }}
@geraldodev yeah, I’ve seen how to do that pattern following like you have above
I’ve used that one
but the clara DSL is of course more complicated
of course for unused, it may be just not finding the symbol more than one time in the entire DSL form hah
Ethan did log a Clara issue it looks like now though
His proposal targets more on the AST compilation side - which is better since the DSL layer is something that is “pluggable” in Clara (people could use their own and target same AST pre-compilation)
Yesterday was my 1st day with clara. I'm enjoying.
oh, nice
About processing facts that comes from sql databases on long running sessions. Because of mutation, one has to query the session looking for the fact based on the primary key of the table, compare it with the current value and if it's different retract the old fact and insert again. Is that correct ?
what does this even mean"
Java.lang.IllegalStateException: Attempting to call unbound fn: #'
ups wrong place