General

Profile

sawa (Tsuyoshi Sawada)

  • Registered on: 04/27/2011
  • Last connection: 03/15/2019

Issues

Activity

03/19/2019

11:08 AM Ruby trunk Bug #15708 (Open): Implicit numbered argument decomposes an array
In the following, `@1` refers to the entire item iterated:
```ruby
a = [1, 2, 3]
a.map{|x| x} # => [1, 2, 3]
a....
sawa (Tsuyoshi Sawada)

03/11/2019

09:25 AM Ruby trunk Misc #15654: Documentation for Complex is wrong or misleading
Actually, currently, there is no literal for complex numbers whose real part is non-zero. I think we need a literal t... sawa (Tsuyoshi Sawada)
08:43 AM Ruby trunk Misc #15654 (Open): Documentation for Complex is wrong or misleading
The documentation for `Complex` https://ruby-doc.org/core-2.6/Complex.html says or implies that a complex can be crea... sawa (Tsuyoshi Sawada)

02/28/2019

11:47 AM Ruby trunk Bug #15627 (Open): Appearance of custom singleton classes
When I have a singleton class `AClass` of an instance `a` of a custom class `A`,
```ruby
class A; end
a = A.ne...
sawa (Tsuyoshi Sawada)

02/21/2019

07:17 PM Ruby trunk Feature #12745: String#(g)sub(!) should pass a MatchData to the block, not a String
What about having `Enumerator#with_m`, such that
```ruby
gsub(pattern).with_m{|match, match_data| block} → new_st...
sawa (Tsuyoshi Sawada)

02/19/2019

12:42 PM Ruby trunk Feature #15612 (Feedback): A construct to restrict the scope of local variables
We sometimes have local variables that are to be used only to keep track of some temporal states/values during a shor... sawa (Tsuyoshi Sawada)

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)

Also available in: Atom