General

Profile

Tsuyoshi Sawada

  • Registered on: 04/27/2011
  • Last connection: 01/11/2017

Issues

Activity

01/11/2017

07:07 AM Ruby trunk Feature #13123 (Open): NilClass#dig
We now have `Hash#dig`. We often have a variable that is either a hash or nil but we are not sure which. In such case...

01/03/2017

03:10 PM Ruby trunk Feature #13067: TrueClass,FalseClass to provide `===` to match truthy/falsy values.
Marc-Andre Lafortune wrote:
> 2) There is no good replacement for the current uses of `when true` and `when false`...

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...

Also available in: Atom