Hacker News new | ask | show | jobs
by ryeguy 3885 days ago
What makes you think you can't create and return an object? This is how every constructor function in rust works.
1 comments

I believe this is referring to '...and keep a mutable reference to it' ie. A singleton, and many overseer style observe-and-update-on-change data binding patterns.

Basically, shared ownership is pretty central to many C++ patterns, which means they translate poorly into rust.