aldld / hasp

An interpreter for a variant of Lisp written in Haskell.
BSD 3-Clause "New" or "Revised" License
3 stars 3 forks source link

Calling (define ...) in REPL outputs empty list () #2

Closed aldld closed 8 years ago

aldld commented 8 years ago

Currently, every hasp expression evaluated, if it does not fail, must return some value of type HData. However this does not really make much sense for define, so its return value (if successful) is set to simply be the empty list (), which gets displayed by the REPL. Ideally there should be no output when define is successful. This can be addressed in one of (at least) three ways:

aldld commented 8 years ago

Resolved by commit a91071c.