Harry R. Schwartz

Software engineer, nominal scientist, gentleman of the internet. Member, ←Hotline Webring→.


Published 21 Jul 2009. Tags: computer-science, language, math, old-dead-white-guys.

Named after the American philosopher and logician W.V.O. Quine, a quine is a program whose only output is its own code. Here’s a neat example in Lisp/Scheme, taken from the Wikipedia article:

((lambda (x) (list x (list 'quote x)))
'(lambda (x) (list x (list 'quote x))))