-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Description
ppx_deriving supports an optional flag. From their docs:
It's possible to make deriving ignore a missing plugin rather than raising an error by passing an optional = true option, for example, to enable conditional compilation:
type addr = string * int [@@deriving yojson { optional = true }]
This works well for their builtins, but doesn't seem to work for bin_io - which is making writing platform independent code difficult. The bin_io folks suggested that this would need to be implemented here.
Is this the place to support optional
for all ppx derivers?
Metadata
Metadata
Assignees
Labels
No labels