2 ms·
you could do if let method = classInstance.methods[methodKey] { //Put some ugly method argument checker thing here method.execute() } It would be
by mahyarm 10y ago
you could do
if let method = classInstance.methods[methodKey] {
//Put some ugly method argument checker thing here
method.execute()
}
It would be typesafe, not dangerous, and statically typed.