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
fastmath vec2/vec3/vec4 dosn't render and causes exception #64
Comments
Can you try the attached fix? The problem was that |
Tried and fix is working. Thank you very much! |
I would say their ILookup implementation is wrong :). |
@borkdude oh! can clarify you why? |
user=> ([1 2 3] 3) ;; this is how you probably implemented it
Execution error (IndexOutOfBoundsException) at user/eval143 (REPL:1).
null
user=> (get [1 2 3] 3) ;; this is how it should behave
nil |
It doesn't throw:
(sorry for offtopic) |
Oh, then I misunderstood the issue, sorry. |
@genmeblog Why does: (get (fastmath.vector/vec2 3 4) :nextjournal.clerk/var-from-def) throw? I don't think it should throw. |
Oh. Indeed! Got it. Thanks! |
Hmmm @mk I think you should revert the change. |
@genmeblog think the change should stay anyway. As we've seen, it can cause problems with code that's out there and being more defensive here doesn't hurt. |
Hi, with the latest nextjournal (
0.5.346
) following code results in exception and renders asnil
value. Maybe something is wrong with fastmath.vector implementation however I can't understand what.The html is generated and prints
nil
as a vec2 value:And exception is like:
The text was updated successfully, but these errors were encountered: