Conversation
|
Keys seem to be passed directly as keys of the map but I think they could be of any type. IIRC hash2 is just for hashes with string keys as an optimization for the compiler. |
|
@elia oops, I did not think of that. What would you recommend? Is there any other recommended "fast" way to make a Ruby hash out of a JS one? |
|
Try with Opal.hash but check because I'm not sure if it takes also an array of arrays |
|
@elia I'm also looking into making Opal.hash pass all the I think this one is good for now with using a ruby hash and calling Any objections to merging this updated PR at this point? |
|
Also, @elia, @meh, in your expert opinion, from JS code, is it better to:
I mean in terms of what would be considered more idiomatic and maintainable in the long run. |
|
I prefer {} and I see it as more maintainable But no strong feelings on this |
|
Thanks, @elia |
No description provided.