From: Daniel Carrera Date: 2003-07-10T10:00:29+09:00 Subject: Re: Ruby T-Shirt Idea -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, Jul 10, 2003 at 09:57:35AM +0900, Tim Hammerquist wrote: > Daniel Carrera graced us by uttering: > > I like the idea of Ruby t-shirts, but your code snipet is > > rather long for a t-shirt. It has to be quick and catchy. How > > about this: > > > > a, b = b, a > > Who needs temp variables? > > http://www.ruby-lang.org > > Perl and Python both do this. Python even uses the same syntax. > > What can we use that demonstrates something that Ruby's uniquely > useful for in 4 lines or less? Gabriele suggested "4.times { puts 'Ruby rocks!' }". I like it. - -- Daniel Carrera | OpenPGP fingerprint: Graduate TA, Math Dept | 6643 8C8B 3522 66CB D16C D779 2FDD 7DAC 9AF7 7A88 UMD (301) 405-5137 | http://www.math.umd.edu/~dcarrera/pgp.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (SunOS) iD8DBQE/DLqmnxE8DWHf+OcRApmXAKCqjs4MN6FWap8A9LM3S/oJw2CaMACgv8tN AX7qre8y5a16fIP8IHItddY= =b+J6 -----END PGP SIGNATURE-----