Project

General

Profile

Bug #15276

URI.join behaviour is unintuitive

Added by vihai (Daniele Orlandi) 19 days ago. Updated 19 days ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:89677]

Description

Hello,

I've been bitten by issue #10075, I actually expected a different behaviour from ::join. It doesn't IMHO resepect the "principle of least suprise".

I agree with avdi who suggests to deprecate ::join and replace it with a more intuitive name, while adding another method that performs path concatenation (which I think it is a more common scenario).

Please consider this,
Thank you!

History

#1 [ruby-core:89678] Updated by shevegen (Robert A. Heiler) 19 days ago

What name would you suggest? Avdi mentioned the name #merge_path - is this the name
that you suggest? (I ask specifically because finding a good name is not always
easy. And in the proposal no specific name was mentioned as such.)

Also available in: Atom PDF