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

Simplify aliasing #38

Closed
skx opened this issue Oct 16, 2022 · 0 comments · Fixed by #39
Closed

Simplify aliasing #38

skx opened this issue Oct 16, 2022 · 0 comments · Fixed by #39
Assignees

Comments

@skx
Copy link
Owner

skx commented Oct 16, 2022

We currently have a lot of (legacy) function renaming.

For example:

(set! year date:year)
(set! slurp file:read)

We have worse too! (Compare length and count in stdlib/mal.lisp!)

It would be nice to have a helper function (alias new existing) to make the intended use more explicit.

@skx skx self-assigned this Oct 16, 2022
skx added a commit that referenced this issue Oct 16, 2022
Rather than using "(set! new-name old-name)", which works, we should
use an "(alias new-name old-name)" function which expresses our intent
more cleanly.

This closes #38.
@skx skx closed this as completed in #39 Oct 16, 2022
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 a pull request may close this issue.

1 participant