rescript-compiler icon indicating copy to clipboard operation
rescript-compiler copied to clipboard

[Feature Request] Add Map and Set bindings in Js module

Open searleser97 opened this issue 4 years ago • 3 comments

Currently there is no way to use Map or Set with rescript natively, alternatively we have to use some library like rescript-js or write our own bindings, I think they should be included by default in the Js module.

searleser97 avatar Sep 08 '21 23:09 searleser97

Very nice to have these, even only the placeholder types (as in #5539).

cannorin avatar Aug 30 '22 15:08 cannorin

Anyone up for a PR?

cristianoc avatar Aug 30 '22 15:08 cristianoc

I'll do the placeholder (as a first step) this week if no one else is going to do the full binding soon.

cannorin avatar Aug 30 '22 15:08 cannorin

Bindings for Map, Set, WeakMap, WeakMap are in the new rescript-core standard library.

I have created a PR there to use the placeholder types that you added: https://github.com/rescript-association/rescript-core/pull/143

cknitt avatar May 28 '23 18:05 cknitt