We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is really problematic:
(let ((x (vector))) (x.push #\x) x) ;; ==> #("x")
This prevents adding:
LString.prototype[Symbol.iterator] = function*() { const chars = Array.from(this.__string__); for (const char of chars) { yield LCharacter(char); } };
because they got unboxed.
Another issue is that:
(Array.from "hello")
doesn't trigger LString iterator, because string is unboxed.
The text was updated successfully, but these errors were encountered:
Possible solutions:
Sorry, something went wrong.
make chars never unboxed #233
1750da6
make strings iterators that return characters #233
dd20c16
this code still doesn't work:
(Array.from "hello") ;; ==> #("h" "e" "l" "l" "o")
Because the string is unboxed before getting the iterator:
(let ((i (. "hello" Symbol.iterator))) (Array.from (i))) ;; ==> #(#\h #\e #\l #\l #\o)
Strings have to be unboxed.
No branches or pull requests
This is really problematic:
This prevents adding:
because they got unboxed.
Another issue is that:
(Array.from "hello")
doesn't trigger LString iterator, because string is unboxed.
The text was updated successfully, but these errors were encountered: