mirage / ezjsonm

An easy interface on top of the Jsonm library.
Other
40 stars 22 forks source link

Retrieving optional fields #13

Closed raboof closed 4 years ago

raboof commented 9 years ago

Wouldn't it make sense to have a variation on 'find' that returns an option instead of raising an error when no element is found?

samoht commented 9 years ago

yes, that would be useful!

raboof commented 9 years ago

Should we rename find to find_exn and change find to return an option? Or do we care deeply about backwards compatibility?

samoht commented 9 years ago

don't worry too much about backward compatibililty, we will just need to add some version constraints in the opam-repository for the next release.