Is there any plan for support double splatting a NamedTuple union?

@straight-shoota , What is your opinion for this long discussion?

I am not the only person who has encountered this issue, others just think that the core team know this bug, and trying to fix it, so no one mention it.

I think this should be possible to implement. The compiler needs to take the different named args types into account and do a multi-dispatch. It’s doable but not trivial. That’s why it says “yet”.

In the meantime you could do that dispatch yourself (check the type) or just use different branches. I know it’s not ideal, but every language has workarounds for some things.

5 Likes

Any update on this?

Base on the discussion on this thread, i consider it necessary to create an issue to track this issue?