Y
Hacker News
new
|
ask
|
show
|
jobs
by
rurban
3129 days ago
Nope. It still can be an atom. Only if it's a pair (i.e. a cons with two cells, not just one) it prints the next.
1 comments
raldi
3129 days ago
Even if that were possible (and with this codebase, I don't think it is), I don't see any code in this function that would print the atom in such a case. It seems like it would just print nothing.
link
rurban
3128 days ago
Look harder, it does. There are only cons (pair) and atoms.
link
raldi
3128 days ago
The author just confirmed, the if-statement does nothing:
https://github.com/carld/micro-lisp/issues/9
link
raldi
3128 days ago
Can you give me an example program that, when fed as input, would cause this if-statement to evaluate to false?
link