Project

General

Profile

Actions

Bug #15276

closed

URI.join behaviour is unintuitive

Added by vihai (Daniele Orlandi) about 6 years ago. Updated about 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:89677]
Tags:

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 1 (0 open1 closed)

Related to Ruby master - Bug #6057: URI - Nonsensical BehaviorClosedakira (akira yamada)Actions

Updated by shevegen (Robert A. Heiler) about 6 years 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.)

Actions #2

Updated by mame (Yusuke Endoh) about 6 years ago

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

Updated by jeremyevans0 (Jeremy Evans) about 4 years ago

  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0