3 ms·
This seems to be a limitation of function call argument syntax, which does not distinguish "all of A, B, C..." vs. "callee picks one of A, B, C...". (Note that
by zozbot234 6y ago
This seems to be a limitation of function call argument syntax, which does not distinguish "all of A, B, C..." vs. "callee picks one of A, B, C...". (Note that this is not the same as passing an "enum" as a function argument, which is more like "caller picks one of A, B. C... (and callee dispatches on what caller has chosen)".) Perhaps a general solution is feasible here.