The following code runs as intended in Mathematica, but always runs the switch
default value when moved into a package. Is there a problem with using a list as a switch
argument in the Wolfram Language? Is there a more appropriate way to write this code for a Mathematica package?
DebugSwitch[{classification_,algorithm_}]:= Module[{},
Echo[{classification,algorithm}];
Switch[{classification,algorithm},
{Parabolic,Native}, Echo["NativeParabolic[f,n,z,p,4]"],
{Hyperbolic,Native}, Echo["NativeHyperbolic[f,n,z,p,4]"],
{Parabolic,Symbolic}, Echo["SymbolicParabolic[f,n,z,p,4]"],
{Hyperbolic,Symbolic}, Echo["SymbolicHyperbolic[f,n,z,p,4]"],
_, Echo["Symbolic[f,n,z,p,4]"]
];
]