General

Profile

sawa (Tsuyoshi Sawada)

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

Issues

Activity

Today

11:27 AM Ruby trunk Feature #15954: 簡単にマルチスレッドを一度に合流させる
matz (Yukihiro Matsumoto) wrote:
> ライブラリでスレッドを作ったりしている可能性もあるので「自分以外全部join」はマズいんじゃないかなあと思います。
> Since required libra...
sawa (Tsuyoshi Sawada)
10:18 AM Ruby trunk Feature #15954 (Rejected): 簡単にマルチスレッドを一度に合流させる
現在いるスレッド以外の全てのスレッドを現在のスレッドに合流させたいときは多いと思います。
その場合、一つの方法は、スレッドを生成するときにそれらを配列に蓄えておき、あとでその配列の各要素のスレッドに対して`join`をすることで...
sawa (Tsuyoshi Sawada)
10:26 AM Ruby trunk Bug #15708: Implicit numbered argument decomposes an array
説明をありがとうこざいます。バクでないことは分かったので、閉じて下さい。 sawa (Tsuyoshi Sawada)
09:57 AM Ruby trunk Misc #15930: DevelopersMeeting20190711Japan
* [Feature #15950]Allow negative length in `Array#[]`, `Array#[]=`, `String#[]`, `String#[]=`
* 長さの負の値を許し、その場合に左...
sawa (Tsuyoshi Sawada)

06/22/2019

12:12 PM Ruby trunk Feature #15950: Allow negative length in `Array#[]`, `Array#[]=`, `String#[]`, `String#[]=`
shevegen (Robert A. Heiler) wrote:
>
> "abcdefgh"[0, -3] # => "fgh"
>
> I guess my brain got confused here,...
sawa (Tsuyoshi Sawada)
03:09 AM Ruby trunk Feature #15950 (Rejected): Allow negative length in `Array#[]`, `Array#[]=`, `String#[]`, `String#[]=`
To take the first n characters of a string, using `[]` is straightforward:
```ruby
"abcdefgh"[0, 3] # => "abc"
`...
sawa (Tsuyoshi Sawada)
02:41 AM Ruby trunk Feature #9948: Safely insert an object into an array
I withdraw this proposal. Please close it. sawa (Tsuyoshi Sawada)

06/20/2019

12:00 PM Ruby trunk Feature #15945 (Open): Option to truncate in `String#ljust`, `String#rjust`, and `String#center`
Sometimes, I need to adjust a string to an exact length: Pad if shorter, and truncate if longer. To do that, I need t... sawa (Tsuyoshi Sawada)

06/17/2019

08:38 AM Ruby trunk Feature #15897: `it` as a default block parameter
I propose to use a new keyword `item`.
* I feel that using a keyword spelt in letters is the right way here since ...
sawa (Tsuyoshi Sawada)

06/16/2019

11:41 AM Ruby trunk Feature #15927: Allow string keys to be used for String#% and sprintf methods
ashmaroli (Ashwin Maroli) wrote:
> One use-case would be where the Data used by `sprintf` is generated at runtime:
...
sawa (Tsuyoshi Sawada)

Also available in: Atom