Hi --

On Mon, 24 May 2004, Ryan Paul wrote:

> just some syntactic nitpicking:
> 
> If I want to perform a map operation using a function...
> 
> def somefunc(x)
>   # ... perform some operation on x ...
>   # ... and return a value ...
> end
> 
>  I have to do this:
> 
> l = [1,2,3].map { |x| somefunc x }
> 
>  Why shouldnt I be able to do this:
> 
> l = [1,2,3].map somefunc

Assuming you mean:

  [1,2,3].map(:somefunc)  # it would have to be a symbol or string

it's been proposed as an RCR and rejected
(http://www.rcrchive.net/rgarchive/rejected.html#rcr50)


David

-- 
David A. Black
dblack / wobblini.net