Dear rust devs on twitter, is there a better way to do this? This seems... verbose lol. But still better than what most of my CLIs with subcommands look like :P https://github.com/yoshuawuyts/playground-structopt/blob/master/src/main.rs#L35-L69 …
Ohh, the comments thing is super neat! That definitely makes things easier :D I'm having trouble reading up on the @ symbol tho; is there a keyword I could look for so I can read up on it further? Compiler doesn't help with trial / error programming here, haha :P
-
-
Hmm this is more of a niche feature than expected. The reference has a single example: https://doc.rust-lang.org/reference/expressions/match-expr.html …
-
hopped onto IRC, and
@steveklabnik pointed me to https://doc.rust-lang.org/book/second-edition/ch18-03-pattern-syntax.html#-bindings … :D
End of conversation
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.