To Adopt mandatory semicolon in method calls if kwargs are passed

Thanks for the quick reply!

Upps, my mistake!

I see that this is a controversial topic, that’s why discution in posted link exist.

Yes, but I found

To have named arguments can help there too.

Yes, but I think a solution that do not change how dispatch works and add the features people already like from other languages can be found. What is proposed do not touch dispatch, I think?

I found in that discussion, as an example:

As the proposal say f(x = 1, y = 2, z = 3) will be interpreted as current call f(1, 2, 3) and the ambiguity is gone, just because semicolon is mandatory. To be able to optionally label positional arguments is not like REALLY important, but it is cool.

That’s ok, I just wanted to focus on the idea of make semicolon mandatory because help to solve other problems/issues

1 Like