On Thu, Sep 13, 2012 at 11:11 PM, Quintus <[email protected]> wrote:
> Am Thu, 13 Sep 2012 20:37:39 +0900
> schrieb Avdi Grimm <[email protected]>:
>
>> I'd recommend sticking to interpolation for pathname/string
>> concatenation; then it doesn't matter which object is what.
>> On Sep 12, 2012 11:06 PM, "Jonathan Tran" <[email protected]>
>> wrote:
>
> I agree, but #+ for Pathname/Pathname concatanation seems a bad choice
> IMHO. As paths are usually separated by / in Ruby (even on Windows),
> why not provide a #/ method for concatenating paths?

Interesting idea!  That looks interesting

config = home / ".myprog" / "config.xml"

OTOH operator + is far more common among programming languages for
string concatenation which the combination of paths resembles...

Kind regards

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

-- You received this message because you are subscribed to the Google Groups 
ruby-talk-google group. To post to this group, send email to 
[email protected]. To unsubscribe from this group, send email 
to [email protected]. For more options, visit this 
group at https://groups.google.com/d/forum/ruby-talk-google?hl=en

Reply via email to