Actions
Feature #16370
openPattern matching with variable assignment (the priority of `in` operator)
Feature #16370:
Pattern matching with variable assignment (the priority of `in` operator)
Status:
Open
Assignee:
-
Target version:
-
Description
I wrote this code:
I expected ret was false but was 0 (truthy value).
I had to write like this:
However, I would like to write ret = n in 99 because it is more natural for me, and I am afraid many people might mistake like me. Could you reconsider the priority of in operator?
Actions