Skip to content

'safe' doesn't capture unbound variables #445

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

Open
masak opened this issue Mar 27, 2025 · 0 comments
Open

'safe' doesn't capture unbound variables #445

masak opened this issue Mar 27, 2025 · 0 comments

Comments

@masak
Copy link
Owner

masak commented Mar 27, 2025

This works as expected (and is already a test in t/mac-safe.t):

> (safe (car 'a))
nil

This doesn't (and isn't):

> (safe x)
Error: ('unboundb x)

I'd expect that to return nil as well, swallowing the error.

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