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 #2301

Merged
merged 18 commits into from
Aug 25, 2023
Merged

Aliasing #2301

merged 18 commits into from
Aug 25, 2023

Conversation

janmasrovira
Copy link
Collaborator

@janmasrovira janmasrovira commented Aug 22, 2023

This pr introduces a new syntactical statement for defining aliases:

syntax alias newName := oldName;

where oldName can be any name in the expression namespace. Fixity and module aliases are not supported at the moment.

  • The newName does not inherit the fixity of oldName. We have agreed that the goal is to inherit the fixity of oldName except if newName has a fixity statement, but this will be done in a separate pr as it requires Support none fixity #2310.

@janmasrovira janmasrovira added this to the 0.4.4 milestone Aug 22, 2023
@janmasrovira janmasrovira self-assigned this Aug 22, 2023
@janmasrovira janmasrovira linked an issue Aug 22, 2023 that may be closed by this pull request
@janmasrovira janmasrovira force-pushed the 2188-aliasing branch 2 times, most recently from 760d17d to cef19f0 Compare August 23, 2023 15:12
@janmasrovira janmasrovira added syntax enhancement New feature or request labels Aug 24, 2023
@janmasrovira janmasrovira marked this pull request as ready for review August 24, 2023 16:32
@lukaszcz lukaszcz merged commit ef16b45 into main Aug 25, 2023
4 checks passed
@lukaszcz lukaszcz deleted the 2188-aliasing branch August 25, 2023 13:29
@jonaprieto jonaprieto modified the milestones: 0.4.4, 0.5 Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request scoping syntax
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Aliasing
3 participants