Skip to content

specialize Js.Dict.fromArray #2320

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

Closed
bobzhang opened this issue Nov 30, 2017 · 2 comments
Closed

specialize Js.Dict.fromArray #2320

bobzhang opened this issue Nov 30, 2017 · 2 comments
Labels
stale Old issues that went stale

Comments

@bobzhang
Copy link
Member

bobzhang commented Nov 30, 2017

part of #734
Currently there is no way to generate JSON object below:

{ "key1" : value1,
  "key2" : value2}

the closest one is Js.Dict.fromArray : (string * Js.Json.t) array -> Js.Json.t Js.Dict.t) but it results in a runtime call.

Js.Dict.fromArray [ "x", x ; "z", z]

Generated JS should be

{ "x" :  x ,
   "z" : z}
@stale
Copy link

stale bot commented Jan 15, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Old issues that went stale label Jan 15, 2021
@stale stale bot closed this as completed Jan 22, 2021
@tsnobip
Copy link
Member

tsnobip commented May 13, 2021

hey @bobzhang, is this something that is still considered in future updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Old issues that went stale
Projects
None yet
Development

No branches or pull requests

2 participants