Re:It never makes sense to use foldl on lists in Haskell (2019)
by cryptonector on Saturday March 21, 2020 @02:01AM
(#22644850)
Doubly-linked lists have problems with concurrent mutability, FYI. It's really better to aim for non-circularity and to avoid the need for locks.
[ Parent
| on HN ]
Re:It never makes sense to use foldl on lists in Haskell (2019)
by adwn on Saturday March 21, 2020 @02:43AM
(#22645008)
> Doubly-linked lists have problems with concurrent mutability, FYI.
So do arrays, FYI.
> It's really better to aim for non-circularity and to avoid the need for locks.
How does an array avoid the need for a lock where a linked list needs one?