Zulip Chat Archive
Stream: general
Topic: diff vs. sdiff
Michael Stoll (Mar 19 2023 at 04:34):
Is there a deeper reason why set difference is diff
(in lemma names), but finset difference is sdiff
?
Yaël Dillies (Mar 19 2023 at 09:47):
I guess people didn't want to call it "set set difference". But really we should align the names.
Michael Stoll (Mar 19 2023 at 19:29):
More generally, I had expected the APIs for set
and finset
to be completely parallel (where it makes sense). But this does not seem to be the case.
For example, there is docs#set.insert_diff_self_of_not_mem , but there is nothing corresponding to it for finsets, as far as I was able to find out. (There is docs#finset.insert_sdiff_of_mem , but this is a different statement and needs an application of docs#finset.sdiff_singleton_not_mem_eq_self to conclude).
Yaël Dillies (Mar 19 2023 at 19:52):
This is indeed very annoying. I've made countless PRs to parallelise them as much as possible, but the APIs are so big that it's still far from done.
Last updated: Dec 20 2023 at 11:08 UTC