brundonsmith / rust_lisp

A Rust-embeddable Lisp, with support for interop with native Rust functions
234 stars 20 forks source link

[Bug] Panic on trying to unwrap a `None` value (only relevant for crate version) #3

Closed alexmozaidze closed 2 years ago

alexmozaidze commented 2 years ago

The following lisp code makes interpreter panic

(defun lol () (+ 1 2))
(lol)

This doesn't panic

(defun lol (a) (+ a 2))
(lol 1)

This is only present on crate version of this package, Github version is fine I had to add the following lines in Cargo.toml in order to get latest version

[replace]
"rust_lisp:0.2.0" = { git = "https://github.com/brundonsmith/rust_lisp" }

Can you update the crate version?

brundonsmith commented 2 years ago

Yes, I'll update the crate

brundonsmith commented 2 years ago

Done