General

Profile

Tsuyoshi Sawada

  • Registered on: 04/27/2011
  • Last connection: 12/01/2016

Issues

Activity

12/01/2016

07:00 AM Ruby trunk Feature #12995 (Open): Conditional expression taking a receiver outside the condition
Since a conditional expression has a return value, we can continue a method chain after a conditional expression like...

09/20/2016

06:05 AM Ruby trunk Feature #12775: Random subset of array
Nobuyoshi Nakada wrote:
> Do you mean random size subset?
> I can't get how/why it is useful.
> Please elaborate w...
04:50 AM Ruby trunk Feature #12775 (Feedback): Random subset of array
I often see use cases to randomly sample a subset from an array like this:
```ruby
a = [3, 2, 6, 2, 6, 1]
a.samp...

08/24/2016

04:42 AM Ruby trunk Feature #12698: Method to delete a substring by regex match
Perhaps my examples were not clear enough. My point is that, unlike `String#delete`, the given string argument should...
04:37 AM Ruby trunk Feature #12698 (Feedback): Method to delete a substring by regex match
There is frequent need to delete a substring from a string. There already are methods `String#delete` and `String#del...

08/03/2016

05:25 PM Ruby trunk Feature #12648: `Enumerable#sort_by` with descending option
Akinori MUSHA wrote:
> Maybe the shorter forms `:asc` / `:desc` like in SQL would sound more familiar.
Actually, ...
01:58 PM Ruby trunk Bug #12607: Ruby needs an atomic integer
Sorry, I do not clearly understand why the original Integer class cannot be made atomic. If it is not possible or if ...

08/02/2016

03:27 PM Ruby trunk Feature #12648: `Enumerable#sort_by` with descending option
Nobuyoshi Nakada wrote:
> I prefer more descriptive option, e.g., `enum.sort_by(:descend) {|e| e}`.
>
> https://g...
10:00 AM Ruby trunk Feature #12648: `Enumerable#sort_by` with descending option
When the number of arguments passed is less than the sort keys, sort should be ascended or descended at a higher arra...
09:57 AM Ruby trunk Feature #12648 (Open): `Enumerable#sort_by` with descending option
I would like to pass an optional argument to `Enumerable#sort_by` or `Enumerable#sort_by!` to allow descending sort. ...

Also available in: Atom