News for hackers. Stuff that matters.
Re:Ask HN: Why Isn't Functional Programming Taking Over? by millstone on Tuesday April 02, 2019 @02:43AM (#19551597)
It's trivial in Rust to share mutable memory via RefCell, Rc, others. These are core, not exotic.

We can imagine a language in which these don't exist, but it's not Rust and would not enjoy the ergonomics of Rust. That's why Rust is not pure functional, or even "almost" pure functional.

Re:Ask HN: Why Isn't Functional Programming Taking Over? by SamReidHughes on Tuesday April 02, 2019 @03:24PM (#19557702)
RefCell uses UnsafeCell inside. Everything that does mutation, under shared ownership, has UnsafeCell somewhere -- IIRC this is or was a requirement to guarantee the compiler won't do certain optimizations.

> but it's not Rust

That's why I stipulated Rust without UnsafeCell.