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

Explore implementing Common Lisp's DEFPARAMETER #417

Open
masak opened this issue Dec 15, 2021 · 0 comments
Open

Explore implementing Common Lisp's DEFPARAMETER #417

masak opened this issue Dec 15, 2021 · 0 comments

Comments

@masak
Copy link
Owner

masak commented Dec 15, 2021

This one: defparameter.

Inspiration comes from reading Norvig's PAIP, where he makes good use of parameters.

These are not exactly like Bel's dynamic variables; in particular (as you can see an example of in the Hyperspec node) there's a nice story for dynamically overriding parameters in a function signature. I remember re-discovering the same trick independently in Raku years ago.

This should be possible by (a) hacking the Perl implementation to support parameters, and then (b) hacking the bel.bel evaluator to do the same. I look forward to the day when doing the latter is easy, because we're standing inside the metacircle.

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

No branches or pull requests

1 participant