4 ms·
Slightly zestier idea: make a helper function `makeMostlyEmptyHashSet` and a linter rule that warns on `new HashSet`. You can turn off the linter warning with a
by 1-more 7y ago
Slightly zestier idea: make a helper function `makeMostlyEmptyHashSet` and a linter rule that warns on `new HashSet`. You can turn off the linter warning with a comment in every linter I've used, and that comment could include a justification for the default sized `HashSet`.
- egdod 7y agoHaving to justify using a default is a little too zesty for my taste.