Quines – Code can be data? Nay, Code Is Data.

New to this blogger –
What is a Quine? A program whose output is the source code itself. (Non empty si vous plais).

Python example ->
s = ‘s = %r\nprint(s%%s)’
print(s%s)

The name “quine” was coined by Douglas Hofstadter, in his popular science book Gödel, Escher, Bach: An Eternal Golden Braid, in the honor of philosopher Willard Van Orman Quine (1908–2000), who made an extensive study of indirect self-reference, and in particular for the following paradox-producing expression, known as Quine’s paradox:
“Yields falsehood when preceded by its quotation” yields falsehood when preceded by its quotation.

Leave a Reply