Follow-up question: can you show me your code? Code you gave up on because of lifetime issues. I want to see what kind of patterns people are trying that don't quite work.https://twitter.com/fasterthanlime/status/1254697572339519488 …
Replying to @fasterthanlime
Pretty much any parser or similar that uses RefCell. Because using &mut self everywhere greatly impacts function decomposition. Here's a concrete example: https://github.com/BurntSushi/regex-automata/blob/4e0e8ec599e92b115c53ed8d760f7c38bf91891f/src/nfa/compiler.rs#L22-L32 … --- IIRC @nikomatsakis has ideas to improve Rust in this area, but I forget where I saw them.
2:36 PM - 27 Apr 2020
0 replies
0 retweets
7 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.