When to use Belt versus Core


I’m still very new to ReScript and I’m a bit lost on when to use Core versus Belt.
Both for example have an Array module with helper functions.

What do I use?

1 Like

From v12 and going forward, Core will be the new standard library. Belt will move to be its own package.

Use Core for all “standard” things like working with arrays etc. Belt will still have its place in v12 going forward, it has various data structures etc that’ll be good to reach for from time to time. But all of the things you’d regularly use in Belt (option/result/array/list helpers, etc) have all moved to Core and been improved there.