[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: The shortest quine (was Re: New meaning of the term "Sputnik")
- From: Gé Weijers <ge@...>
- Date: Wed, 25 Jul 2012 18:20:35 -0700
On Wed, Jul 25, 2012 at 2:44 PM, TNHarris <telliamed@whoopdedo.org> wrote:
> Format %q makes it easy, but because of the name it comes out longer.
>
> y="y=%qprint(string.format(y,y))"print(string.format(y,y))
Same idea, but using 'y:format(y)' instead of 'string.format(y,y)'
y="y=%qprint(y:format(y))"print(y:format(y))
--
Gé