--lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Daniel DeLorme <dan-ml / dan42.com> [2009-05-14 11:42:31 +0900]: > It seems that often an object will be passed into a block only to invoke > a method of that object: > arr.map{ |obj| obj.some_method } > > So I had the (weird? stupid?) thought that it would be nice to have some > syntactic sugar like this: > arr.map{ .some_method } You can do arr.map(&:some_method) in ruby 1.9 -J > > Does that make any sense? --=20 jan=3Dcallcc{|jan|jan};jan.call(jan) --lrZ03NoBR/3+SXJZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQEcBAEBAgAGBQJKC4fqAAoJEBcDvo3O83d6AEIIAI5lGKPaQbmOwKlfMLqJlPaG LrSsYYU4bYy54Y8RlIEnsELseDiQU7JwF6qR/LEuvgiA6AJawrwPWRaq/FHjCSlM 750DeoRFPnu3etLBuUFSkygxe0eSollMWS0xMXER0o3pUDcMrOlqems7QeR7nvZM 55N5weTNc+8JNIos5KD7466tRrDAwcJE1kroGWcgrKtR440ZOiRH1gQHtUU2GGpY RVKVgdig6u3dIwHdcx3tmZ7vatzA31iJr5HmzqRrYeJ1qMpHPZ7i1lW4gjCtwhfQ IJjuuwYNLiU/IYYC9XlEvvnel8IPfqdmqW6wPEK12QBfzqQ6QVvyaNiSINP8Cc8= =Qgfy -----END PGP SIGNATURE----- --lrZ03NoBR/3+SXJZ--