ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: "Austin Ziegler" <halostatue@gmail.com>
To: ruby-core@ruby-lang.org
Subject: [ruby-core:20419] Re: Array#to_proc
Date: Mon, 8 Dec 2008 21:55:23 +0900	[thread overview]
Message-ID: <9e7db9110812080501q57a9ce24u42e2c9256601f1a8@mail.gmail.com> (raw)
In-Reply-To: <4f4a0fba0812080453x4ae6a3c7n40c0e5cc59fc40de@mail.gmail.com>

On Mon, Dec 8, 2008 at 7:47 AM, Eustáquio Rangel
<eustaquiorangel@gmail.com> wrote:
> Some months ago I sent a patch to Rails proposing an Array#to_proc the
> way we already have a Symbol#to_proc:
> http://rails.lighthouseapp.com/projects/8994/tickets/1253-arrayto_proc
> As pointed on the discussion, we only had some few cases (on Rails) to
> add this method, but what do you guys think about it on the language
> itself, would be useful or it does not help anyway?

I think that this is a specialized use case for Rails and Rails-like
productions. I don't think that this is something that would be of
general purpose value, and I think it looks uglier than Symbol#to_proc
from a line-noise perspective.

-austin
-- 
Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/
               * austin@halostatue.ca * http://www.halostatue.ca/feed/
               * austin@zieglers.ca

  reply	other threads:[~2008-12-08 13:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-08 12:47 [ruby-core:20418] Array#to_proc Eustáquio Rangel
2008-12-08 12:55 ` Austin Ziegler [this message]
2008-12-08 13:21 ` [ruby-core:20421] Array#to_proc Florian Gilcher
2008-12-08 13:56   ` [ruby-core:20423] " Eustáquio Rangel
2008-12-08 14:08   ` [ruby-core:20424] " James Coglan
2008-12-08 17:24   ` [ruby-core:20430] " Nobuyoshi Nakada
2008-12-08 17:51     ` [ruby-core:20433] " Mikael Høilund
2008-12-09  5:58     ` [ruby-core:20439] " Yukihiro Matsumoto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9e7db9110812080501q57a9ce24u42e2c9256601f1a8@mail.gmail.com \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).