Learning Rust by building a CLI leveraging nom (parser combinators). It’s fun stumbling around in the dark here.
-
-
First pass, then after Copy. I've also included the full definition, and what I'd done in Haskell (https://github.com/joshuaclayton/read-ctags/blob/4ed6309c1c56c97239e9c3d5131c3fab20709fbe/src/System/Ctags/Parser.hs#L61-L64 …)pic.twitter.com/gXZwaeEZBA
-
You're returning a function that can be called multiple times, so you can't just return the same value. If you don't need to call this function multiple times try `impl FnOnce`. If you do, you'll need to clone the value (or wrap it in a shared pointer like Rc or Arc
- 1 more reply
New conversation -
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.