I have made a benchmark comparing (immutable persistent) linked lists, Kotlin mutable lists, and Kotlin’s non-modifiable lists. The problem is that people arguing against linked lists (note that I am talking about immutable persistent linked lists and not Java linked lists) generally “forget” this. ![]() Programmers know that they have to make defensive copies when necessary. I have seen many bugs due to the fact that these lists are not persistent. The only question is whether they are useful for some use cases or not.Īrray-based lists are very error-prone too. Whether programmers are able or not to make an educated decision about using linked lists is irrelevant. Thinking that programmers would be worst than I am or even as bad as I am and that it would be a valid reason to remove linked lists would be basing the decision upon cognitive bias. ![]() What I meant is that it was insulting for programmers in general, and that insult is not an argument.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |