[#61424] [REJECT?] xmalloc/xfree: reduce atomic ops w/ thread-locals — Eric Wong <normalperson@...>

I'm unsure about this. I _hate_ the extra branches this adds;

13 messages 2014/03/12

[ruby-core:61536] [CommonRuby - Feature #9625] Define `Pathname#/` to append to the path

From: alexey.muranov@...
Date: 2014-03-16 11:09:38 UTC
List: ruby-core #61536
Issue #9625 has been updated by Alexey Muranov.


I am not sure, however, if the type conversion `.to_s` is a good idea: i think it will be easier to remember if `#/` will be just a synonyme of `#join`, and would help to catch some bugs early.

----------------------------------------
Feature #9625: Define `Pathname#/` to append to the path
https://bugs.ruby-lang.org/issues/9625#change-45822

* Author: Alexey Muranov
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
How about borrowing this definition from *Homebrew* project:

    class Pathname
      def / that
        join that.to_s
      end
    end

Looks nice to me.



-- 
http://bugs.ruby-lang.org/

In This Thread

Prev Next