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

Defining new forms #11

Open
masak opened this issue Aug 25, 2020 · 0 comments
Open

Defining new forms #11

masak opened this issue Aug 25, 2020 · 0 comments

Comments

@masak
Copy link

masak commented Aug 25, 2020

Using the Windows executable of the 0.4.0 release:

> (set keys [map car _])
(lit clo nil (_) (map car _))

> (keys forms)
(thread ccc after dyn where if quote (nil))

> (form hello ((e) a s r m)
|   (mev s (cons (append "Hello " e "!") r) m))
<...huge output omitted...>

> (keys forms)
(hello thread ccc after dyn where if quote (nil))

> (hello "world")
undefined variable: hello

> (bel '(hello "world"))
"Hello world!"

I was surprised and happy to see that bel handles this one! 🎉 But arguably the ambient evaluator should, too.

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