General

Profile

slash_nick (Ryan Hosford)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 4 4

Activity

03/29/2016

05:45 AM Ruby Feature #12133: Ability to exclude start when defining a range
Here's what I would've written: (see: sample [range_sections](https://gist.githubusercontent.com/rthbound/aa6b4053c5791efb0904/raw/d7683f1cc54718efb905435ff794107a4c6ca80c/samples.rb))
~~~ruby
def which_range?(value)
range = nil
ra...
slash_nick (Ryan Hosford)

03/26/2016

03:29 PM Ruby Feature #12133: Ability to exclude start when defining a range
Yui NARUSE wrote:
>
> ...
Here you've used the case statement to exclude start on the middle range. The problem is the code is largely static while the values of the endpoints (and which ranges should include those endpoints) may chang...
slash_nick (Ryan Hosford)

03/24/2016

04:30 PM Ruby Feature #12133: Ability to exclude start when defining a range
Please accept apologies for confusion caused by non-matching parenthesis/brackets -- this notation is just a standard way of denoting intervals in mathematics (ref. [ISO 31-11](https://en.wikipedia.org/wiki/ISO_31-11) & [Wikipedia entry ... slash_nick (Ryan Hosford)

03/01/2016

08:31 PM Ruby Feature #12133 (Feedback): Ability to exclude start when defining a range
An intuitive, approach would be to allow defining ranges like so:
~~~
[1..10]
[1..10)
(1..10]
(1..10)
~~~
... where a square bracket indicates boundary inclusion and a parenthesis represents boundary exclusion. The syntax ther...
slash_nick (Ryan Hosford)

02/27/2016

09:21 PM Ruby Misc #12122 (Closed): Array Documentation (set intersection, union)
**Set Intersection**
* Most know what intersection means, but saying the operation excludes duplicates could be misleading (`[1] & [1]`, duplicates excluded, might mean a result of `[]`).
* Instead, saying intersection returns the un...
slash_nick (Ryan Hosford)

01/29/2016

09:30 PM Ruby Bug #12036 (Closed): Enumerator's automatic rewind behavior
When enumerating an enumerator, the enumerator automatically rewinds when #next raises an error. The concern here is that someone may need to handle that error and continue processing the rest of the enumerator.
12:22 < Ox0dea> I thin...
slash_nick (Ryan Hosford)

09/24/2015

07:50 PM Ruby Misc #11548 (Closed): FileUtils#remove_tailing_slash is a poor method name
One would expect this method to be called `remove_trailing_slash`
I asked around on IRC and the consensus is this is probably an unfortunate typo that's survived too long.
Tailing and Trailing mean similar things, but I think most ...
slash_nick (Ryan Hosford)

Also available in: Atom