3 ms·
But in js you can have maps of arbitrary types as keys right? So jump table could just use that
by shultays 4y ago
But in js you can have maps of arbitrary types as keys right? So jump table could just use that
- mattashii 4y agothat's not quite true, because arbitrary expressions can change meaning due to e.g. overloading of functions. E.g. Random.random() will have to be called each time that case branch is evaluated, because that function could be overloaded or change its returned value.