Zig NEWS

Discussion on: New pure fns in StaticBitSet

Collapse
 
bassfault profile image
bassfault

Nice post, and glad to know that contributing to std is such a smooth experience.
Just a small nitpick: do you really need to compute the set intersection twice to perform the required test? It seems to me that computing it once and than comparing with both a and b could be enough.

Collapse
 
pyrolistical profile image
Pyrolistical

Good point. I blindly inlined the implementation of subsetOf, but you are right. I'll fix it.