| ▲ | xscott 13 hours ago | |||||||
Yeah, but sorting algs, FFTs, matrix factorizations, backprop, and many other things just aren't the same with purely functional data structures. Maybe these well known cases could be hidden in the API, but it's easy to come up with other examples. I forget what Clojure calls it, but they have some notion about things where they're mutable during "birth" and then locked down. Someone smarter than me knows how to do this right. | ||||||||
| ▲ | IsTom 11 hours ago | parent [-] | |||||||
That sounds like Haskell's ST monad and yeah, that could work. These are very specific "escape hatches" though and typically people want more. | ||||||||
| ||||||||