Project

General

Profile

Bug #15276

URI.join behaviour is unintuitive

Added by vihai (Daniele Orlandi) 10 months ago. Updated 10 months 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!


Related issues

Related to Ruby master - Bug #6057: URI - Nonsensical BehaviorClosedActions

History

Updated by shevegen (Robert A. Heiler) 10 months 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.)

#2

Updated by mame (Yusuke Endoh) 9 months ago

  • Related to Bug #6057: URI - Nonsensical Behavior added

Also available in: Atom PDF