Missing section reference in section 13.2 "Again, don't worry about associated types yet, because we'll be covering them in Chapter XX."
-
-
Replying to @jeromeleoterry @rustlang
Liking the iterators / operators. Similar to FP map / filter, and Java 8 streams.
1 reply 0 retweets 1 like -
-
Replying to @rustlang
Made it to the end of the book. Was looking forward to the web server final project, but was disappointed when I saw "Coming soon!".
2 replies 0 retweets 0 likes -
Replying to @jeromeleoterry
It's coming in the next release! Or you can check out the beta docs :)
1 reply 0 retweets 1 like -
Replying to @rustlang
Found it :) https://doc.rust-lang.org/beta/book/second-edition/ch20-00-final-project-a-web-server.html …
1 reply 0 retweets 0 likes -
Replying to @jeromeleoterry @rustlang
Finished working through it. Here's my code https://github.com/jerometerry/rustbook-httpserver …
1 reply 0 retweets 1 like -
Replying to @jeromeleoterry @rustlang
One thing I didn't like was the FnBox trait and the call_box method. Better names would be JobExecutor and execute, respectively.
1 reply 0 retweets 1 like -
Replying to @jeromeleoterry @rustlang
trait JobExecutor { fn execute(self: Box<Self>); }
1 reply 0 retweets 1 like -
Replying to @jeromeleoterry @rustlang
impl<F: FnOnce()> JobExecutor for F { fn execute(self: Box<F>) { (*self)() } }
2 replies 0 retweets 2 likes
Ah interesting, thanks! The reason we used that name is that that's the name of the generic thing we want to put in the language....
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.