fastmail / Ix

automatic generation of JMAP-style APIs
GNU General Public License v2.0
10 stars 5 forks source link

Fail to compile if classes have filters that cannot be diffed #89

Closed wolfsage closed 7 years ago

wolfsage commented 7 years ago

If a class specifies a filter that doesn't:

then fail to compile mentioning why.

This saves consumers trouble down the road if they implement a filter that doesn't match up to an Ix property but don't provide a custom differ. When this would happen, Ix would crash during ix_get_list_updates() when trying to compare rows against filters.

rjbs commented 7 years ago

Cool, works for me. I briefly thought, "this will slow down startup," but we're using Moose. ;)