General

Profile

sawa (Tsuyoshi Sawada)

  • Login: sawa
  • Registered on: 04/27/2011
  • Last connection: 07/04/2020

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 72 102 174

Activity

07/08/2020

04:00 AM Ruby master Feature #17016: Enumerable#scan_left
What is wrong with the following?
```ruby
[1, 2, 3].inject([0]){|a, e| a << a.last + e} # => [0, 1, 3, 6]
[1, 2, 3]....
sawa (Tsuyoshi Sawada)

07/04/2020

07:51 AM Ruby master Feature #17006: Let `Kernel#Hash` take a block to provide the default value
nobu (Nobuyoshi Nakada) wrote in #note-2:
> The description mentions the default value first, but the proposal will ...
sawa (Tsuyoshi Sawada)

07/03/2020

08:09 AM Ruby master Feature #17006 (Open): Let `Kernel#Hash` take a block to provide the default value
Sometimes, we need to create a hash that has explicit key-value pairs as well as a default value, but there has not b... sawa (Tsuyoshi Sawada)

06/27/2020

01:55 AM Ruby master Feature #16993: Sets: from hash keys using Hash#key_set
Would
```ruby
Set.new(h.each_key)
```
not work?
sawa (Tsuyoshi Sawada)

06/26/2020

06:01 AM Ruby master Feature #16985: Improve `pp` for `Hash` and `String`
shyouhei (Shyouhei Urabe) wrote in #note-4:
> There are lots of debatable points on String#inspect (for instance its ...
sawa (Tsuyoshi Sawada)

05/27/2020

04:59 AM Ruby master Feature #15771: Add `String#split` option to set `split_type string` with a single space separator
I have a particular use case. I was creating a file that describes UTF-8 characters, which included lines like this:
...
sawa (Tsuyoshi Sawada)
04:52 AM Ruby master Feature #15771: Add `String#split` option to set `split_type string` with a single space separator
Dan0042 (Daniel DeLorme) wrote in #note-10:
> That optimization is nice to have, but I think the point of this ticket...
sawa (Tsuyoshi Sawada)

05/15/2020

09:22 AM Ruby master Feature #16894: Integer division for Ruby 3
jzakiya (Jabari Zakiya) wrote in #note-7:
> Ruby already has ``a.div b`` for explicit integer division.
Thanks, I ha...
sawa (Tsuyoshi Sawada)
04:04 AM Ruby master Feature #16894: Integer division for Ruby 3
What would you do when you want integer division? Have you thought of it? ~~`(a / b).round`~~ `(a / b).floor`is not a... sawa (Tsuyoshi Sawada)
03:45 AM Ruby master Feature #16891: Restore Positional Argument to Keyword Conversion
Dan0042 (Daniel DeLorme) wrote in #note-1:
> ## Non-Symbol Keyword Argument
>
> Previously one could trust that `foo...
sawa (Tsuyoshi Sawada)

Also available in: Atom