3 ms·
One of the biggest parts of it was a block of thousands(?) of conditional statements to figure out the result type of every combination of type+operator+type T
by userbinator 3y ago
One of the biggest parts of it was a block of thousands(?) of conditional statements to figure out the result type of every combination of type+operator+type
This is not something uncommon for a dynamically typed language; I think the simplest approach is a multidimensional array lookup.