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
During a recent update[^1] the static optimizer was taught to convert the Mexico ≥, ≤, and ≠ ops to their Texas alternatives.
It was later pointed out[^2] that this aliasing is stronger than originally intended:
multi sub infix:«<=» ( Str $, Str $ --> 'Str' ) {}
say 'f' <= 'f'; # Str
say 'f' ≤ 'f'; # Str
It doesn't work the other way around though: defining own ≤ op won't make <= use it and
these three ops are probably the only ones for which this kind of thing happens.
I removed[^3] this kind of aliasing, for now.
The RFC is: should this kind of aliasing be done for *all* Mexico ops?
- The Mexico name is the one that is implemented as an alias to the Texas name
- Defining a lexical Texas op makes Mexico ops use that lexical for free
- Defining a lexical Mexico op does NOT make Texas alternatives use it for free
Migrated from rt.perl.org#132176 (status was 'new')
Searchable as RT132176$
The text was updated successfully, but these errors were encountered: