Skip to content

Ensure defn metadata are always preserved as a map #1187

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

Merged

Conversation

ikappaki
Copy link
Contributor

Hi,

can you please review patch to merge the attr-map? and the metadata in defn using a loop rather than conj. It addresses #1186.

The previous conj operation was return in a list rather than a map. This also appears to be the likely cause why the :decorators meta key didn't work when passed in as defn metadata in defasync.

I've updated the test suite for the same.

Thanks

@ikappaki ikappaki force-pushed the issue/defn-macroexpand-attr-map branch from 3b4c9da to 272f772 Compare December 19, 2024 15:12
@ikappaki ikappaki changed the title Use a loop to merge attr-map? and meta in defn Ensure defn metadata are always preserved as a map Dec 19, 2024
@chrisrink10 chrisrink10 merged commit 1c1eef9 into basilisp-lang:main Dec 19, 2024
12 checks passed
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

Successfully merging this pull request may close these issues.

2 participants