3 ms·
> For example: Rust's type system certainly has some nice properties to track dependencies between middlewares[^1] but I'm not convinced middlewares are even th
by bjz_ 10y ago
> For example: Rust's type system certainly has some nice properties to track dependencies between middlewares[^1] but I'm not convinced middlewares are even the best approach possible here.
There's a good discussion of this on /r/rust: https://www.reddit.com/r/rust/comments/4lz92j/tween_a_middleware_library_experiment/ https://www.reddit.com/r/rust/comments/4lz92j/tween_a_middle...
I'm pretty interested in tomakas's approach, which seems to avoid the approach of middlewares, in favor of explicitness: https://www.reddit.com/r/rust/comments/4lz92j/tween_a_middleware_library_experiment/d3rhglt https://www.reddit.com/r/rust/comments/4lz92j/tween_a_middle...