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

Reassigning builtins #74

Open
4 tasks
dloscutoff opened this issue Mar 23, 2024 · 0 comments
Open
4 tasks

Reassigning builtins #74

dloscutoff opened this issue Mar 23, 2024 · 0 comments
Labels
compatibility-breaking Making this change would break backward compatibility.
Milestone

Comments

@dloscutoff
Copy link
Owner

dloscutoff commented Mar 23, 2024

  • XA should be the "alphanumeric" regex (-`[0-9a-z]`). XZ can be the "any letter" regex (-`[a-z]`).
  • ** should be removed: E is shorter most of the time, and sometimes one wants to do "fold each on multiplication" (currently $* *, could be $** if ** weren't a token).
  • @* should potentially be changed, for similar reasons ("get first of each" is currently @ *, could be @*). Maybe @/? With binary @, it's inverting something and using it as an index; with unary @, it's inverting something and getting its first character (or the first element of an inverted list, although that could just as easily be /@). Both seem like they could theoretically be useful in some situation, but I can't think of one.
  • TBD on removing ++ and -- (in theory, ++ could be useful in a regex expression like XX+ +XD, though I've never had that situation come up).
@dloscutoff dloscutoff added the compatibility-breaking Making this change would break backward compatibility. label Mar 23, 2024
@dloscutoff dloscutoff added this to the v2.0 milestone Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility-breaking Making this change would break backward compatibility.
Projects
None yet
Development

No branches or pull requests

1 participant