2 ms·
> So in general, I think it makes sense to question the value of constraints, and not blindly trust them to always be beneficial. Yes. But the constraints are
by marcosdumay 2y ago
> So in general, I think it makes sense to question the value of constraints, and not blindly trust them to always be beneficial.
Yes. But the constraints are the entire point of something like a library.
So, it's not so much questioning the value of "constraints" in the abstract sense, but questioning the value of the specific constraints you are creating.
As always, good engineering happens on the details and can't be described in a concise way.
- LegionMammal978 2y agoPerhaps. Still, my biggest gripe with constraints isn't with using them effectively in code under my own control (where they can indeed be quite useful), but having to interact with them in other people's libraries and systems, many of which are seemingly awash in constraints that they don't really need. Some end up in the worst-case combination of having both useless constraints and unrealized guarantees, which is why I think user-facing constraints should always be taken with a skeptical eye, whether you're planning on adding them yourself, or evaluating them in someone else's project.