Quantcast
Channel: Ruby Issue Tracking System: shevegen (Robert A. Heiler)
Viewing all articles
Browse latest Browse all 100

Ruby master - Feature #16818: Rename `Range#%` to `Range#/`

$
0
0

I somewhat agree with sawa's comment that % on Range may confuse some ruby
folks; I think % is more typically the modulo operator? I can not say how
strong this confusion may be, perhaps small, perhaps not, but I concur with
his original comment in regards to %.

However had, I also happily admit that I really have no particularly strong
opinion either way. I am also indifferent (or, more accurately, a bit
clueless) about /. Since it is quite unlikely for me to use % or / on
Range anyway (I tend to stick to oldschool matz-ruby whenever possible ;)),
I let those folks who make use of the range operation, or those who
proposed it, to comment on that either way since I am not really attached
to that operation to begin with.

It should be pointed out that this has follow-up effects - see zverok's
example of extending it towards Arithmetic* (and there I also don't have
a big opinion either way, just wanted to point out it that whatever way
is chosen, it may be good to decide on it before ruby 3.0 release I
think).


Viewing all articles
Browse latest Browse all 100

Trending Articles