Reason standart library or belt which one to use and why?


#1

reason standart library or belt which one to use and why ?


#2

This is a good article each explaining the benefits of Belt: https://dev.to/johnridesabike/avoiding-exceptions-in-reason-bucklescript-30ii

And this article explains Belt‘s approach and why it can improve your experience: https://www.javierchavarri.com/data-first-and-data-last-a-comparison/


#3

In addition to rather not using the stdlib in BuckleScript, please also consider using Belt over Js when the corresponding thing is available in Belt as it is also stated in the new Reason docs (https://reasonml.org/apis/javascript/latest/js).

There are some modules only available (for now) in Js though, for instance Js.String.

The exception for using Js is when you really need the zero-cost bindings for performance.