1

Closed

Un-genericify the codegen stuff

description

We're sort of misusing generics in our codegen now. We're more or less using it to pass around an argument of Type "Type". A good canary for this misuse is that we have typeof(T) in tons of places and have large switch statements on the type. That's not generic code.
Closed Apr 11, 2012 at 6:01 AM by marklio
I was able to do this quite easily, which is another indication it was wrong. I also noticed we had lots of generic methods that introduce their own generic parameters, which is bad code smell as well. We also got rid of reflection lookup of GenerateAssignment calls, another indication that we were doing it wrong.

comments