diff --git a/src/i_extension_traits.rs b/src/i_extension_traits.rs index fb97278..b7e76dd 100644 --- a/src/i_extension_traits.rs +++ b/src/i_extension_traits.rs @@ -59,19 +59,6 @@ impl OutcomeCount for Vec { // Now we can call these functions directly on `Vec`. -// But all of that is a lot of boilerplate. Wouldn't it be nice to have a `derive` macro that -// exactly does this, on any enum? -// -// In that case, for any `enum Foo { X, Y, .. }`, `#[derive(CountOf)]` would generate a trait -// `CountOfFoo`, with functions named `fn x_count`, `fn y_count` etc. Finally, it would implement -// `CountOfFoo` for `Vec`. -// -// And heck, you could then easily implement it for other collections of `Foo`, such as -// `HashMap<_, Foo>` etc. - -// This problem does NOT require you to implement such a macro. Perhaps you will encounter that -// macro problem somewhere in the future. - /// This function is not graded. It is just for collecting feedback. /// On a scale from 0 - 255, with zero being extremely easy and 255 being extremely hard, /// how hard did you find this section of the exam.