Re:My Adventure Writing My First Quine in Java
by GrooveStomp on Wednesday January 26, 2011 @06:58PM
(#2145889)
This misses the point of a Quine. You haven't written the code to generate the string, you've used an external library that someone else wrote to do that job for you.
And here's a little write-up on how I approached the problem: https://nolancaudill.com/2011/01/01/how-to-build-a-quine/
((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")
Sometimes writing python literally feels like taking candy from a baby
I made this mistake the first time I tried too.