Has a feature of conditional compilation during monomorphisation been considered?
I'd like to compile something like this:
fn<A: Foo> blah(a: A) { #[conditional(A: Debug)] debug!("blah called with {:?}", a);
#[conditional(A: !Debug)]
debug!("blah called with a value of type {}", type_name::<A>);
}
This is a form of specialization, but more compact, and flexible to some extent