lib.fileset
: Implicitly coerce lists to unions
#267387
Labels
5. scope: tracked
Issue (or PR) is linked back to a `5. scope: tracking` issue
For all
lib.fileset
functions taking file sets as arguments, it would be possible to implicitly coerce list types to the union of their elements. So e.g.could be shortened to
I did think of this while developing the library, but held back because I wasn't sure about the implications, especially regarding the duality of
union
andintersection
.But now that we decided against having a list version of
intersection
, it has become pretty clear that union is the one and only operation that would make sense to use by default for lists.@alyssais would probably like this.
This issue is sponsored by Antithesis ✨
The text was updated successfully, but these errors were encountered: