News for hackers. Stuff that matters.
Re:My Adventure Writing My First Quine in Java by daniel-cussen on Wednesday January 26, 2011 @09:08PM (#2146265)
In Lisp they're pretty easy:

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

returns itself (note: written in Clisp; I've had issues with Lispworks doing things properly). You can also stuff messages in there pretty easily:

((lambda (x y) (list x (list 'quote x) y)) '(lambda (x y) (list x (list 'quote x) y)) "Hello, world")

There are no comments on this comment yet.