Skip to content

Optionals in Arrays

Compare
Choose a tag to compare
@jarsen jarsen released this 15 Nov 15:11
· 64 commits to master since this release

This PR (thanks to @jgrandelli) adds the ability to decode arrays of optionals from MarshaledObject. It also adds an optional argument to discard errors when decoding an array of objects, so that in an array where a few of the objects are malformed you don't have to throw away the whole array. You could previously do this on your own, but required an understanding of flatMap and was less obvious to new users. This API should help Marshal be more friendly.