by tkz1312 · 2y ago · 0 comments
So excited to see it continue to thrive and grow.
And I'd argue the borrow checker reduces the cognitive overhead.
There do of course exist many important use cases where a better c++ is actually what you want, and the complexity tax of that is worth paying.
There is a talk somewhere where Richard "demos" this.
main =
x = pf.NewRef!
pf.Write! x 5
y = pf.Read! x import Data.IORef
main :: IO ()
main = do
x <- newIORef (0 :: Int)
writeIORef x 5
y <- readIORef x
print y