You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(ns scratch
(:require [nextjournal.clerk :as clerk]
[clojure.core :as b]))
(defn regex [re]
(re-find re "my string"))
(regex '#"my")
because the regular expression is read as (clojure.core/re-pattern ...) due to an option in edamame. But when using a regex in quotes, this form remains unevaluated.
The option to read regexes as a call to clojure.core/re-pattern is provided to edamame to fix equality semantics between regexes: #84 but unfortunately this doesn't work properly when the regex occurs in a quoted form.
The text was updated successfully, but these errors were encountered:
The following notebook fails:
because the regular expression is read as
(clojure.core/re-pattern ...)
due to an option in edamame. But when using a regex in quotes, this form remains unevaluated.The option to read regexes as a call to
clojure.core/re-pattern
is provided to edamame to fix equality semantics between regexes: #84 but unfortunately this doesn't work properly when the regex occurs in a quoted form.The text was updated successfully, but these errors were encountered: