-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
feat(transient-vector): adds initial support for transient vector #60
Conversation
a5e5254
to
67d4771
Compare
I noticed that we don't have a In clojure ([1 2 3] 5) throws and Also, Let me know your thoughts on this, @jeaye |
Yeah, we just haven't implemented that behavior on As a rule, if Clojure throws, jank throws. We're in the business of hitting parity, not changing semantics (even when we don't necessarily like those semantics). |
Some comments for things to improve, but overall this is great! Be sure to test it all in |
Tests:
|
namespace jank::runtime | ||
{ | ||
obj::transient_vector::static_object(runtime::detail::native_persistent_vector &&d) | ||
: data{ std::move(d).transient() } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This, because of LSP warning about d
not getting moved.
No description provided.