General

Profile

nerdinand (Ferdinand Niedermann)

Issues

Activity

07/22/2016

09:52 AM Ruby trunk Feature #10594: Comparable#clamp
Shyouhei Urabe wrote:
> Martin Dürst wrote:
> > The next meeting is scheduled for August 9th, but the wiki page fo...

07/21/2016

01:10 PM Ruby trunk Feature #10594: Comparable#clamp
Anyone there? I'd love to see this in Ruby finally and I'm not the only one...

09/26/2015

11:45 AM Ruby trunk Feature #10594: Comparable#clamp
Where do we go from here? Is my patch acceptable? If no, what should I change? If yes, what's the process for getting...

09/15/2015

09:48 AM Ruby trunk Feature #10594: Comparable#clamp
Benoit Daloze wrote:
> Good luck explaining the precise semantics of clamp on String though.
IMO it's not that ha...

07/10/2015

05:32 AM Ruby trunk Feature #10594: Comparable#clamp
D.E. Akers wrote:
> Ferdinand Niedermann wrote:
> > Here you go: https://github.com/ruby/ruby/pull/962
>
> The f...

07/09/2015

08:28 PM Ruby trunk Feature #10594: Comparable#clamp
Here you go: https://github.com/ruby/ruby/pull/962
07:33 AM Ruby trunk Feature #10594: Comparable#clamp
> That `min > max` should raise an `ArgumentError` seems the only logical conclusion.
I agree. I'll send another p...

07/08/2015

01:00 PM Ruby trunk Feature #10594: Comparable#clamp
I think there is even another option: Swapping the min and max values if they are passed in the wrong order.
This ...

07/06/2015

03:26 PM Ruby trunk Feature #10594: Comparable#clamp
I tried the basic implementation (adaption of `#between?`). What should we do about cases like these?
```
irb(main)...

07/03/2015

07:15 AM Ruby trunk Feature #10594: Comparable#clamp
That does make a lot of sense. I'll send another pull request.

Also available in: Atom