If Rust had return type inference, it would be close to my ideal language
-
-
Also me in Rust: Oh cool I can just return `impl Iterator` here! Oh but wait I also need it to be DoubleEndedIterator and ExactSizeIterator and Send and Sync and Copy Look I don't care if I couple to the exact type here do I really have to write this shit?
-
Also me in Rust: To ever abstract over Diesel queries you will have to at absolute minimum write: The SQL type of the select clause, the entire from clause, and the entire group by clause -- Always in cases where you don't care about coupling. Will never be concise w/o -> _
- 1 more reply
New conversation -
-
-
That's one bit of embarrassment in rust I'm not proud of. Impl Trait stabilizing will help much more that the tools we have today: leak concrete type or open your wallet and pay for a cosy box::new
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Expanding brain: pull the two lines in a lambda inside of the function
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.