Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rurban
on Nov 27, 2017
|
parent
|
context
|
favorite
| on:
Lisp in fewer than 200 lines of C
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.
raldi
on Nov 27, 2017
[–]
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.
rurban
on Nov 28, 2017
|
parent
[–]
Look harder, it does. There are only cons (pair) and atoms.
raldi
on Nov 28, 2017
|
root
|
parent
|
next
[–]
The author just confirmed, the if-statement does nothing:
https://github.com/carld/micro-lisp/issues/9
raldi
on Nov 28, 2017
|
root
|
parent
|
prev
[–]
Can you give me an example program that, when fed as input, would cause this if-statement to evaluate to false?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: