You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: