3 ms·
As pointed out by yuriks [0], it seems the patch authors are interested in looking into a safer solution [1]: > The previous patches in this series illustrate
by aw1621107 10mo ago
As pointed out by yuriks [0], it seems the patch authors are interested in looking into a safer solution [1]:
> The previous patches in this series illustrate why the List::remove
method is really dangerous. I think the real takeaway here is to replace
the linked lists with a different data structure without this unsafe
footgun, but for now we fix the bugs and add a warning to the docs.
[0]: https://news.ycombinator.com/item?id=46307357 https://news.ycombinator.com/item?id=46307357
[1]: https://news.ycombinator.com/item?id=46307357 https://news.ycombinator.com/item?id=46307357