From: Andrew Grimm <andrew.j.gr...@gmail.com>
Date: Thu, 16 Jun 2011 22:58:05 +1000
Local: Thurs, Jun 16 2011 8:58 am
Subject: Re: [rails-oceania] Re: Ruby: the non-awesome parts
On Thu, Jun 16, 2011 at 8:20 PM, Mark Wotton <mwot...@gmail.com> wrote: I'm not understanding what you're saying. > On Thu, Jun 16, 2011 at 7:51 PM, Andrew Grimm <andrew.j.gr...@gmail.com> >> On 15/06/2011, at 6:33 PM, Gregory McIntyre <bluep...@gmail.com> wrote: >> > x = proc{|a| a*2 }; [1,2,3].map(&x) # explain why you can't call >> I'd be curious about how you would handle Array.new(10, x) where x could > This is a bad argument. You should be able to treat functions just as normal Given x = proc {|a| a * 2} you'd have to have module Enumerable that in of itself is fairly innocuous. but what about Array.new ? There's three forms of Array.new currently: Array.new(size=0, obj=nil) For the purposes of this discussion, we don't have to worry about x = proc {|a| a * 2} But what'd happen if you banned the lambda? You'd either not be able I'm not sure what approach Haskell takes with this, however. Perhaps Andrew You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||