Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent tag behavior #42

Open
rublag opened this issue Nov 16, 2022 · 0 comments
Open

Inconsistent tag behavior #42

rublag opened this issue Nov 16, 2022 · 0 comments

Comments

@rublag
Copy link
Contributor

rublag commented Nov 16, 2022

When symbol a is tagged with symbol b which has any tags except zen/tag, or symbol a is tagged with symbol a, there is no error.

  1. Error
    (do (require '[zen.core :as zen])
        (def ztx (zen/new-context))
        (def myns '{ns testns
    
                    testnottag
                    {:zen/tags #{zen/schema}}
    
                    testsym
                    {:zen/tags #{testnottag}
                    :a "b"}})
        (zen/load-ns ztx myns)
        (zen/errors ztx))
  2. No error
    (do (require '[zen.core :as zen])
        (def ztx (zen/new-context))
        (def myns '{ns testns
                    testsym
                    {:zen/tags #{testsym}
                    :a "b"}})
        (zen/load-ns ztx myns)
        (zen/errors ztx))
  3. No error
    (do (require '[zen.core :as zen])
        (def ztx (zen/new-context))
        (def myns '{ns testns
    
                    testnottag
                    {:a :b}
    
                    testsym
                    {:zen/tags #{testnottag}
                    :a "b"}})
        (zen/load-ns ztx myns)
        (zen/errors ztx))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant