@ManishEarth's take on this: you've been hanging out with tokio ppl too much
@endsofthreads: you think that's bad, look at this https://github.com/tokio-rs/tracing/blob/6a00e9bbe3b1085b665ebf0815524bc85aa6562f/tracing-subscriber/src/fmt/mod.rs#L212-L219 …
@mycoliza: >_>
-
-
i don’t know if i really think this kind of code is “bad”...it’s saying a lot, when you think about it!
-
also, of the fairly small handful of languages that even let you *express* this kind of type constraints, rust’s syntax for it is the most readable by far
- 10 more replies
New conversation -
-
-
This file has been cleaned up since I last looked, but here's a type for you. https://github.com/libp2p/rust-libp2p/blob/d55871623ca64cbe5746e339fd6c19a7c1ba94d1/swarm/src/lib.rs#L108-L116 … And some bounds https://github.com/libp2p/rust-libp2p/blob/d55871623ca64cbe5746e339fd6c19a7c1ba94d1/swarm/src/lib.rs#L201-L226 …
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.
