Closed fade2black closed 3 years ago
The blog post uses dynamic dispatch without any apparent need. The article in the book should probably cover the tradeoffs of using generics vs using dynamic dispatch.
@NilSet How about removing it (dispatch version) completely?
@NilSet Here I provide a version with static dispatch.
Linked it to the PR, let's keep it open until we actually merge it. Maybe there is still some feedback from @pickfire and I'll also read through it the upcoming days. Cheers.
Working on https://medium.com/swlh/strategy-design-pattern-in-rust-5f5486cd294c?source=friends_link&sk=6871f4761dc6c4b7c0bc3ccefd22e408