[#10193] String.ord — David Flanagan <david@...>

Hi,

41 messages 2007/02/05
[#10197] Re: String.ord — Yukihiro Matsumoto <matz@...> 2007/02/06

Hi,

[#10198] Re: String.ord — David Flanagan <david@...> 2007/02/06

Yukihiro Matsumoto wrote:

[#10199] Re: String.ord — Daniel Berger <djberg96@...> 2007/02/06

David Flanagan wrote:

[#10200] Re: String.ord — David Flanagan <david@...> 2007/02/06

Daniel Berger wrote:

[#10208] Re: String.ord — "Nikolai Weibull" <now@...> 2007/02/06

On 2/6/07, David Flanagan <david@davidflanagan.com> wrote:

[#10213] Re: String.ord — David Flanagan <david@...> 2007/02/06

Nikolai Weibull wrote:

[#10215] Re: String.ord — "Nikolai Weibull" <now@...> 2007/02/06

On 2/6/07, David Flanagan <david@davidflanagan.com> wrote:

[#10216] Re: String.ord — David Flanagan <david@...> 2007/02/07

Nikolai Weibull wrote:

[#10288] Socket library should support abstract unix sockets — <noreply@...>

Bugs item #8597, was opened at 2007-02-13 16:10

12 messages 2007/02/13

[#10321] File.basename fails on Windows root paths — <noreply@...>

Bugs item #8676, was opened at 2007-02-15 10:09

11 messages 2007/02/15

[#10323] Trouble with xmlrpc — James Edward Gray II <james@...>

Some of the Ruby code used by TextMate makes use of xmlrpc/

31 messages 2007/02/15
[#10324] Re: Trouble with xmlrpc — "Berger, Daniel" <Daniel.Berger@...> 2007/02/15

> -----Original Message-----

[#10326] Re: Trouble with xmlrpc — James Edward Gray II <james@...> 2007/02/15

On Feb 15, 2007, at 1:29 PM, Berger, Daniel wrote:

[#10342] Re: Trouble with xmlrpc — James Edward Gray II <james@...> 2007/02/16

While I am complaining about xmlrpc, we have another issue. It's

[#10343] Re: Trouble with xmlrpc — Alex Young <alex@...> 2007/02/16

James Edward Gray II wrote:

[#10344] Re: Trouble with xmlrpc — James Edward Gray II <james@...> 2007/02/16

On Feb 16, 2007, at 12:08 PM, Alex Young wrote:

Re: Potential RCR?: Array#join with block

From: "Farrel Lifson" <farrel.lifson@...>
Date: 2007-02-28 05:36:33 UTC
List: ruby-core #10449
On 28/02/07, Austin Ziegler <halostatue@gmail.com> wrote:
> On 2/27/07, Farrel Lifson <farrel.lifson@gmail.com> wrote:
> > Does anyone think Array#join with a block is a potential RCR?
> >   [1,3,2,4].join("-"){|sep,a,b| sep + (a > b ? ">" : "<")}
> > which would produce
> >   "1-<3->2-<4"
>
> > I thought it would be nice to make the join string a bit more dynamic.
> >
> > I've got working C code which I'm just testing/optimising further at
> > the moment. Is it worthy of submission as an RCR to trunk?
>
> I'd dig through the archives; I'm pretty sure that Matz has weighed in
> on this in the past; I don't think it's a good idea, myself.
>
> -austin
> --
> Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/
>                * austin@halostatue.ca * http://www.halostatue.ca/feed/
>                * austin@zieglers.ca
>
>

I've had a look and found two threads so far
(http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/8d1e99cf3e98215/beb0827ac4801573?lnk=gst&q=join+with+block&rnum=1#beb0827ac4801573,
http://groups.google.com/group/ruby-talk-google/browse_thread/thread/5f75c7d3edf7e5d0/a33056d675a18727?q=join+with+block&lnk=ol&)
but neither seems to come to a hard and fast conclusion. Some people
like it and some don't. One thing that seems different in my
implementation is I pass in the initial separator string as well as
the two elements it will be placed between to the block. Calling join
without the block still works exactly the same as the current version.

Farrel

In This Thread

Prev Next