You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could we have type t = Js.Json.t instead of using directly the Js.Json.t inside the code?
The idea is to create a nice way to have a code that works by itself, I understand it depends on Js.Json.t internally, but every usage of Json would return its type: Json.t, and will handle on every function by its type.
The usage in the end could be:
letencodeStrstr : Json.t =Json.encode str
Without conflict between Js.Json.t (Which isn't the main type of Json) and any other tool, such as Yojson.
Is it valid? WDYT?
The text was updated successfully, but these errors were encountered:
Hi there,
I was working on universalize the
melange-json
code on server-reason-react: ml-in-barcelona/server-reason-react#133Reading the melange-json code led me to doubt.
Could we have
type t = Js.Json.t
instead of using directly the Js.Json.t inside the code?The idea is to create a nice way to have a code that works by itself, I understand it depends on
Js.Json.t
internally, but every usage of Json would return its type:Json.t
, and will handle on every function by its type.The usage in the end could be:
Without conflict between
Js.Json.t
(Which isn't the main type of Json) and any other tool, such as Yojson.Is it valid? WDYT?
The text was updated successfully, but these errors were encountered: