[#4858] Build fails on OSX Tiger 10.4 — noreply@...

Bugs item #1883, was opened at 2005-05-06 14:55

21 messages 2005/05/06
[#4862] Re: [ ruby-Bugs-1883 ] Build fails on OSX Tiger 10.4 — Yukihiro Matsumoto <matz@...> 2005/05/07

Hi,

[#4865] Re: [ ruby-Bugs-1883 ] Build fails on OSX Tiger 10.4 — Ryan Davis <ryand-ruby@...> 2005/05/07

[#4868] Re: [ ruby-Bugs-1883 ] Build fails on OSX Tiger 10.4 — nobu.nokada@... 2005/05/07

Hi,

[#5053] Re: [ ruby-Bugs-1883 ] Build fails on OSX Tiger 10.4 — Shugo Maeda <shugo@...> 2005/05/19

Hi,

[#5056] Re: [ ruby-Bugs-1883 ] Build fails on OSX Tiger 10.4 — Mark Hubbart <discordantus@...> 2005/05/19

On 5/19/05, Shugo Maeda <shugo@ruby-lang.org> wrote:

[#4874] - Need to reduce Ruby Sources to the Minimal — Ilias Lazaridis <ilias@...>

Hello all,

31 messages 2005/05/10
[#4879] Re: [THIN] - Need to reduce Ruby Sources to the Minimal — Pit Capitain <pit@...> 2005/05/11

Ilias Lazaridis schrieb:

[#4883] Re: [THIN] - Need to reduce Ruby Sources to the Minimal — Ilias Lazaridis <ilias@...> 2005/05/12

Pit Capitain wrote:

[#4884] Re: [THIN] - Need to reduce Ruby Sources to the Minimal — Ryan Davis <ryand-ruby@...> 2005/05/12

[#4888] Re: [THIN] - Need to reduce Ruby Sources to the Minimal — Ilias Lazaridis <ilias@...> 2005/05/12

Ryan Davis wrote:

[#4889] Re: [THIN] - Need to reduce Ruby Sources to the Minimal — ES <ruby-ml@...> 2005/05/12

[#4890] Re: [THIN] - Need to reduce Ruby Sources to the Minimal — Ilias Lazaridis <ilias@...> 2005/05/12

ES wrote:

[#4891] Re: [THIN] - Need to reduce Ruby Sources to the Minimal — Alexander Kellett <ruby-lists@...> 2005/05/12

On May 12, 2005, at 3:13 PM, Ilias Lazaridis wrote:

[#4911] Pointless argc check in Array#select — noreply@...

Patches item #1900, was opened at 2005-05-12 09:33

11 messages 2005/05/12

[#4919] - Hierarchical/Modular Directory Structure — Ilias Lazaridis <ilias@...>

The source-code structure should be simplified, lowering barriers for

20 messages 2005/05/12

Re: [ ruby-Patches-1939 ] Pathname, totally revamped

From: Gavin Sinclair <gsinclair@...>
Date: 2005-05-24 04:04:45 UTC
List: ruby-core #5083
On Sunday, May 22, 2005, 11:50:48 PM, Daniel wrote:

>> In the same thread, it seemed that Akira-san was open to the
>> potential of a revamp but also provided examples for why Pathname
>> is not a String - and other helpful info.

> We'll have to agree to disagree.  The main concern
> that Tanaka and others made was that certain String
> methods weren't appropriate for a Pathname [...]

I don't like Pathame inheriting String.  It just doesn't make sense to
me.  The String is merely an implementation detail for Pathname, not a
logical is-a relation.  Further, it's not even a very compelling
implementation detail - I happen to think of a path name as an array
of file/directory names.

At the end of the day, a Pathname is a Pathname and nothing but.  It
has a bunch of methods that are useful, just like any other object.  I
see no compelling reason for inheriting String (or Array), and see a
reason (compelling or otherwise) not to.

> Second, just don't use the methods that don't make
> sense.  There are methods from Enumerable that don't
> make sense with String but that doesn't seem to have
> made the String class any worse for the wear.

That's not true.  Every method in Enumerable makes sense for String.
It couldn't be any other way: String implements #each, and all the
methods in Enumerable do something nice with #each.

Delegation is the right pattern for Pathname, not inheritance.  If
there are String methods that are useful in a Pathname, they can be
delegated easily.  (Same goes for Array, potentially.)

I like the fact that Pathname implements #to_str, but IIRC Tanaka
Akira thinks it's bad to rely on that.

Sometimes working with pathnames is more trouble than it should be.
In my ideal world the whole Pathname concept would be part of Ruby,
not part of the standard library.  The File methods are totally non-OO
and appear everywhere in people's code.  Pathname is so much more
elegant.

Gavin


In This Thread