Set is part of the standard library, so it should not create dependency problems. If this is the cleanest way to solve the problem, go for it.
Regarding the use (or lack thereof), I think there are probably two main reasons:
- programmers not familiar with the library
- programmers do not understand when sets are the best way to solve.
- programmers who don't know / don't remember anythign about sets at all.
Make three main reasons.
source share