You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From looking at the code in Rakudo (See this link) it looks like it will primarily use the stringy form to compare it's arguments, but will use the same code that <=> does when it gets an Int type.
From this it looks like the description given in the Operators section of the docs is correct, and the description in the Order type needs to be changed.
In this section: https://docs.perl6.org/type/Order#infix_cmp
it says "Coerces it's arguments to Stringy."
However, in the other section: https://docs.perl6.org/routine/cmp#(Operators)_infix_cmp
it says "Compares strings with string semantics, numbers with number semantics, Pair objects first by key and then by value etc."
Which one is the correct description ?
The text was updated successfully, but these errors were encountered: