Closed chrisrink10 closed 1 day ago
There are a few different issues with Basilisp's implementation of condp:
condp
(condp = :a :b true :c true) ;;=> nil
nil
basilisp.user=> (condp = "a" "b" :b "a" nil "c" :c :a) exception: <class 'basilisp.lang.exception.ExceptionInfo'> from <class 'basilisp.lang.compiler.exception.CompilerException'> phase: :macroexpansion message: error occurred during macroexpansion: expected result expression {:test "a"} form: (basilisp.core/condp = "a" "a" nil "c" :c :a) location: <REPL Input>:NO_SOURCE_LINE
There are a few different issues with Basilisp's implementation of
condp
:nil
, it throws an exception during macroexpansion: