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

Record meta+ext constructor cannot set meta #928

Closed
frenchy64 opened this issue Aug 31, 2024 · 2 comments
Closed

Record meta+ext constructor cannot set meta #928

frenchy64 opened this issue Aug 31, 2024 · 2 comments

Comments

@frenchy64
Copy link

version

Babashka v1.3.191

platform

mac

problem

The record constructor taking a meta and ext ignores the meta.

repro

Babashka v1.3.191 REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.

user=> (defrecord A [])
user.A
user=> (meta (A. {:foo 1} nil))
nil

expected behavior

user=> (defrecord A [])
user.A
user=> (meta (A. {:foo 1} nil))
{:foo 1}
user=> (clojure-version)
"1.8.0"
@borkdude
Copy link
Collaborator

Never knew! Is this only with the constructor? In which real Clojure program did you discover this incompatibility?

@frenchy64
Copy link
Author

See the comment in this PR where I use a workaround https://github.com/plumatic/schema/pull/457/files

borkdude added a commit that referenced this issue Sep 30, 2024
borkdude added a commit that referenced this issue Sep 30, 2024
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

2 participants