11 Likes
tbh, this should be included in the rescript stdlib as a sort of spec to guarantee object shapes on the ffi boundary with automatic checks.
I’d say Sury is a little bit too opinionated to be a part of the Stdlib. It’s more like a framework, which you install anyway if you need it. Also, there’s a really nice way to pattern-match on JSON values in ReScript v12, which will work for many simple use cases.
2 Likes