Should I use Pervasives or Belt

according to this Roles for Belt,Js, and Pervasives in ReScript

when trying to cast from int to string
should I use



will Pervasives Deprecated in the future?

I don’t know, if pervasives will be deprecated at some point, but i would say Belt.Int.toString is a more idiomatic rescript code (modules, camelcase, etc.).

1 Like

Especially for these conversion functions, use Belt. The Pervasive functions will slowly go away for style consistency at some point.

1 Like