transfire / gmail.com wrote:
> Tanaka wrote:
>> I think rewriting it in C is appropriate way to make it faster.
> 
> I won't disagree with you there. So if that's in the works than no
> worries.
> 
> Two thoughts though. I liked being about to use << to add to a path.
> Eg.
> 
>   pn = Pathname.new('a/b')
>   pn << 'c'
>   pn  #=> #<Pathname:a/b/c>
> 
> Some other array-like methods seem useful too, #each for instance.

The pathname2 package already does this (although you use '+' instead of 
'<<').

> More importantly, I think it would be nice if there were a shorter way
> to define a path, perhaps a percent literal like %p{a/b}.

Good idea.  I'm stealing it for pathname2. :)

Regards,

Dan