Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aliasing of Unicode ops to Texas Versions #6555

Open
p6rt opened this issue Sep 28, 2017 · 3 comments
Open

Aliasing of Unicode ops to Texas Versions #6555

p6rt opened this issue Sep 28, 2017 · 3 comments
Labels
RFC Request For Comments

Comments

@p6rt
Copy link

p6rt commented Sep 28, 2017

Migrated from rt.perl.org#132176 (status was 'new')

Searchable as RT132176$

@p6rt
Copy link
Author

p6rt commented Sep 28, 2017

From @zoffixznet

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

[1] rakudo/rakudo@6ec21cb
[2] rakudo/rakudo@6ec21cb#commitcomment-24615687
[3] rakudo/rakudo@43c348a

@p6rt
Copy link
Author

p6rt commented Sep 28, 2017

From @zoffixznet

s​:g/Mexico/Fancy Unicode/;

per RT#​132179​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=132179#ticket-history

@p6rt
Copy link
Author

p6rt commented Dec 16, 2017

From @zoffixznet

Some extra discussion​: https://irclog.perlgeek.de/perl6-dev/2017-12-16#i_15588080

@p6rt p6rt added the RFC Request For Comments label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC Request For Comments
Projects
None yet
Development

No branches or pull requests

1 participant