Skip to content

add swap alias for flip #685

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

haydenflinner
Copy link
Contributor

I was tripped up a few times on my first morning with uiua by typing "swap" rather than "flip" 😄

@kaikalii
Copy link
Member

kaikalii commented Apr 5, 2025

One issue with this is that it could also be an alias for backward.

@haydenflinner
Copy link
Contributor Author

Interesting, TIL of backward! swap doesn't have a link to backward, but backward seems to be a different "time of applying" swap. I'll add that backlink if I get a chance.

I've also noticed that searching "print" doesn't bring up the "pf" command for "print and flush".

Perhaps the search bar including descriptions would fix both "searching for swap from memory" and "searching for print out of familiarity"! I may take a look at that too.

Do you have any plans for a more interactive/visual debugger written anywhere?

@kaikalii
Copy link
Member

kaikalii commented Apr 7, 2025

The "time of applying" is the same. backward is just a modifier while flip is a function.

I don't have plans for visual debugging. That's what stuff like stack ? or output comments are for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants