3 ms·
Notice how the discussion is full of edge-cases which this code doesn't handle? That's the argument for letting the operating system handle it unless this is su
by acdha 12y ago
Notice how the discussion is full of edge-cases which this code doesn't handle? That's the argument for letting the operating system handle it unless this is such a key part of what you do that it's worth taking on that expense personally.
- agwa 12y ago> Notice how the discussion is full of edge-cases which this code doesn't handle? Can you point to a single unhandled edge case mentioned so far in this discussion? The only possible one I see is finnh's complaint that it doesn't support changing arguments, but that seems more like a missing feature (which doesn't seem that important to me) than an edge case. The logic needed to correctly implement this is quite minimal, and implementing it yourself both spares you a rather heavy dependency and gives you more flexibility.
- _Soulou 12y agoFor the argument, you can change them, i answered there: https://news.ycombinator.com/item?id=8773176 https://news.ycombinator.com/item?id=8773176 So far, I haven't encountered any annoying edge case I can't handle, so if you have examples, I'll be glad to discuss them with you