Re:OCaml: a Rust developer's first impressions
by ReleaseCandidat on Sunday November 12, 2023 @03:52AM
(#38238568)
Yes I know and at least GHC optimizes lists better than most other data structures (I guess even isomorphic ones).
But I guess your definition of "all the time" is not the samé as mine (yes, I use them in every project too).
What I wanted to express is that lists are way less used than beginner tutorials may make it seem and there are other data structures available (like in other languages ;).
You also use recursion all the time, and no, recursion is not generally straightforwardly optimised into iteration unless you're doing trivial tail recursion.