Skip to content

Conversation

@super7ramp
Copy link
Contributor

This closes #202.

(is (= [] (persistent! (conj!)))))

(testing "conj! coll"
(testing "when coll is transient"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a test for the count of the transient vector before coercing it to a persistent vector?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we ensure that the transient has the correct size/shape during intermediate calls to conj! (or any other x! applied to a transient)?

Copy link
Member

@jeaye jeaye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@jeaye jeaye merged commit c5ebfd7 into jank-lang:main Nov 17, 2025
2 checks passed
@super7ramp super7ramp deleted the conj-bang branch November 17, 2025 22:01
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.

clojure.core/conj!

3 participants