bel icon indicating copy to clipboard operation
bel copied to clipboard

'safe' doesn't capture unbound variables

Open masak opened this issue 9 months ago • 0 comments

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.

masak avatar Mar 27 '25 07:03 masak