4 ms·
This assumes that you have an isA and an isB function. This forces me to write such a function which I might not have and in case of very very very large data t
by Morgawr 10y ago
This assumes that you have an isA and an isB function. This forces me to write such a function which I might not have and in case of very very very large data types (like ~20-30, if not more, constructors) it becomes unwieldy and very messy.
- dllthomas 10y agoIt's probably less work than duplicating the cases, and ideally you can give a more meaningful name to the whole "isA or isB" construct - especially when you have a lot of constructors!