If Rust had return type inference, it would be close to my ideal language
-
-
-
Replying to @ManishEarth
Me in Ruby: These two lines would be way clearer if I pull it into a method. Me in Rust: These two lines would be way clearer if I pull it into a function. Oh shit but the type is a pain to write... Oh right and lifetimes... Fuck it I'll just leave it.
3 replies 2 retweets 13 likes -
Replying to @sgrif @ManishEarth
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?
3 replies 0 retweets 3 likes -
Replying to @sgrif @ManishEarth
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 reply 0 retweets 2 likes
fite me. ;)
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.