General

Profile

sawa (Tsuyoshi Sawada)

  • Registered on: 04/27/2011
  • Last connection: 02/06/2019

Issues

Activity

02/15/2019

11:10 AM Ruby trunk Feature #15574: Prohibit to pass a block on super() implicitly
sos4nt (Stefan Schüßler) wrote:
> Calling `super` (without parentheses) would pass two arguments (`foo` and `bar`) t...
sawa (Tsuyoshi Sawada)
10:47 AM Ruby trunk Feature #15574: Prohibit to pass a block on super() implicitly
sos4nt (Stefan Schüßler) wrote:
> With the proposed change however, it becomes my responsibility. Almost every time ...
sawa (Tsuyoshi Sawada)

02/08/2019

09:19 AM Ruby trunk Feature #15590: Add dups to Array to find duplicates
With the newly introduced `tally`, you can also do:
```ruby
a = ["Tokyo", "Paris", "London", "Miami", "Paris", "O...
sawa (Tsuyoshi Sawada)

02/06/2019

03:06 PM Ruby trunk Bug #15589: `Numeric#zero?` is much slower than `== 0`
I would like to thank mame for introducing the history. I am not too crazy about using `zero?` or `nonzero?`, especia... sawa (Tsuyoshi Sawada)
09:34 AM Ruby trunk Bug #15589 (Open): `Numeric#zero?` is much slower than `== 0`
My understanding is that the predicate method `Numeric#zero?` is not only a shorthand for `== 0`, but is also optimiz... sawa (Tsuyoshi Sawada)
02:31 PM Ruby trunk Feature #15588: String#each_chunk and #chunks
I am also not so sure if this feature is needed. But if I wanted such feature, I would ask to let `String#scan` take ... sawa (Tsuyoshi Sawada)
08:00 AM Ruby trunk Feature #15446: Add a method `String#each_match` to the Ruby core
I would rather propose to have `String#scan` take an optional second argument that is comparable to the optional seco... sawa (Tsuyoshi Sawada)

02/05/2019

04:42 AM Ruby trunk Feature #15574: Prohibit to pass a block on super() implicitly
duerst (Martin Dürst) wrote:
> ko1 (Koichi Sasada) wrote:
>
> > Why don't you pass a block parameter explicitly?
...
sawa (Tsuyoshi Sawada)

02/02/2019

03:01 AM Ruby trunk Feature #11076: Enumerable method count_by
knu (Akinori MUSHA) wrote:
> In today's developer meeting, Matz understood the need for the feature but didn't like ...
sawa (Tsuyoshi Sawada)

01/30/2019

05:17 AM Ruby trunk Feature #15573: Permit zero step in Numeric#step and Range#step
There is also inconsistency in that, without the block, `0` is allowed in these forms.
```ruby
1.step(10, 0) # =>...
sawa (Tsuyoshi Sawada)

Also available in: Atom