News for hackers. Stuff that matters.
Re:Nim 1.0 by pdimitar on Tuesday September 24, 2019 @04:26AM (#21057740)
Is there a site(s) where there is specified how to represent more complex data structures while making the borrow checker happy?
Re:Nim 1.0 by littlestymaar on Tuesday September 24, 2019 @07:55AM (#21059003)
When you've internalized its rules, the borrow checker isn't too complicated to keep happy (you may need to use stuff like RefCell and Rc though). It takes some time though, and this tutorial helped me a lot in the beginning: https://rust-unofficial.github.io/too-many-lists/