On Jul 10, 2011, at 10:32 AM, Allen Wirfs-Brock wrote:

> On Jul 10, 2011, at 10:23 AM, Brendan Eich wrote:
> 
>> On Jul 10, 2011, at 10:18 AM, Rick Waldron wrote:
>> 
>>> The more I think about it, I still can't come up with any really exciting 
>>> use cases where Array.of would outshine anything that already exists. I say 
>>> strike it from the wishlist.
>> 
>> Higher-order programming with Array as constructing-function bites back for 
>> the single-number-argument case. That's where Array.of helps.
> 
> Yes, if you actually need to pass Array.of as a function argument.  Of course 
> if we have block lambdas you could just say:
> 
>      hof({|a|[a]})
> instead of
>      hof(Array.of)

You know I <3 block-lambdas ;-).

/be

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to