From: Eric Hodel Date: 2004-08-06T23:01:20+09:00 Subject: Re: %w for symbols --GTZ+2qEBTXdGs1w1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Gavin Sinclair (gsinclair@soyabean.com.au) wrote: > On Friday, August 6, 2004, 9:18:12 PM, Austin wrote: >=20 > > On Fri, 6 Aug 2004 16:00:32 +0900, Caio Chassot wrote: > >> Is there any similar notation to %w[ word word2 word3 ] that returns an > >> array of symbols instead of strings? > >>=20 > >> If not, are there any plans for it in future ruby? Is it a good idea a= nyway? > >>=20 > >> (Maybe that's a good example of where we could use macros?) >=20 > > It seems common enough that it might be nice to have this. Perhaps > > %W{} instead of %w{} ? >=20 > I don't object to the feature either. I think %s{} makes more sense, > though. %s is already used: $ ruby p %s(foo bar baz) ^D :"foo bar baz" --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --GTZ+2qEBTXdGs1w1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQFBE48sMypVHHlsnwQRAqoqAKDKyaOs8pDbuWk/g0m5hyB4Ed2NpwCg5Ysz oZD2eGbnNtbnPaxKgX4IlgY= =szrJ -----END PGP SIGNATURE----- --GTZ+2qEBTXdGs1w1--