This is the first step among several to try to encapsulate keys and keys_to_optimize into a class called FactorKeys (open to better names).
So that all Factor creation functions will just take a Func and FactorKeys.
I have a rough plan of how to implement FactorKeys and I'm also open to other suggestions.
But for now, I just want to remove some of the (what I deem to be unnecessary) overloads in Factor creation functions to reduce the API surface area for future refactoring.
This is the first step among several to try to encapsulate
keys
andkeys_to_optimize
into a class calledFactorKeys
(open to better names). So that all Factor creation functions will just take aFunc
andFactorKeys
. I have a rough plan of how to implementFactorKeys
and I'm also open to other suggestions.But for now, I just want to remove some of the (what I deem to be unnecessary) overloads in Factor creation functions to reduce the API surface area for future refactoring.