3 ms·
Well, if a call such as `append(...)` (without the assignment) can either succeed or fail silently depending on side-conditions, this specific example seems to
by Yoric 5y ago
Well, if a call such as `append(...)` (without the assignment) can either succeed or fail silently depending on side-conditions, this specific example seems to suggest that a developer cannot trust the result of tests.
That... doesn't feel me with much confidence in the language (or, well, its stdlib).
- philosopher1234 5y agoThis is again just too shallow. I suggest you investigate the reasons why it was designed this way before deciding it is bad.
- Yoric 5y agoI'm certain that there is a valid reason. Nevertheless, it feels like a footgun and that footgun will find itself embedded somewhere deep in code I didn't write. If it can explode in my face despite careful testing, I'm not really happy about that perspective. I'm sure that there is a tradeoff somewhere and that you gain something by allowing this in the library. But I'm strongly on the side of developers for whom reliability has a very high priority.