General

Profile

sowieso (So Wieso)

  • Login: sowieso
  • Email: sowieso@dukun.de
  • Registered on: 10/05/2013
  • Last sign in: 08/14/2026

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 3 0 3

Activity

Today

02:36 PM Ruby Feature #22238: String#tr to take a Hash for multi-character replacements
Ah, of course. Thank you! I thought `hash` was `Kernel#hash`🤦 sowieso (So Wieso)
09:01 AM Ruby Feature #22238: String#tr to take a Hash for multi-character replacements
Can you explain what
```ruby
"Hello".gsub(/./m) { hash[$&] || $& } # gsub equivalent
```
is supposed to do? I can't wrap my head around this code.
sowieso (So Wieso)

03/27/2019

09:51 AM Ruby Feature #7148: Improved Tempfile w/o DelegateClass
I guess this is related:
``` ruby
tf = Tempfile.new
tf.unlink
tf2 = tf.dup
puts tf.fileno
# => 10
puts tf2.fileno
# => 11
tf2.close
print tf2.fileno
# => 11
print tf.fileno
IOError: closed stream
from /usr/local/rvm/rub...
sowieso (So Wieso)

12/14/2018

03:30 AM Ruby Feature #14594: Rethink yield_self's name
So we will have the questionable (as confusing for promise library users) `then` in 2.6? There were a lot of concerns mentioned above. `to_be` (or other suggestions) wouldn't have these problems. I would advice to re-think this one final... sowieso (So Wieso)

09/04/2018

02:48 AM Ruby Feature #14594: Rethink yield_self's name
This looks **to_be** perfect, I really like this idea! sowieso (So Wieso)

04/27/2018

07:44 AM Ruby Feature #12912: An endless range `(1..)`
I tried to structure my post to make it clear that there a two different types of uses for ranges. Of course `..5` where the left bound is -­­∞, wouldn't make sense for iterating. But being able to skip the right bound, but not the left,... sowieso (So Wieso)
06:24 AM Ruby Feature #12912: An endless range `(1..)`
I like this change.
**As for general ranges**:
I was somewhat comfortable with `.step`, but this is much nicer. Having a short global variable for Float::INFINITY would be fine too, imho. Something like `0..Inf` or `0..INF`.
**...
sowieso (So Wieso)

04/18/2018

04:03 AM Ruby Feature #14594: Rethink yield_self's name
I just like to stress that having an easy and short name is more important than having a name that correctly describes the behaviour. *`tap`* is also a horrible name that every ruby newbie has to look up first, still it is loved in the c... sowieso (So Wieso)

10/07/2014

12:27 PM Ruby Feature #10320: require into module
Michael Gee wrote:
> I don't like changing `require` with one argument to mean something else. It would break too much legacy code.
You are definitely right here, we should not do that.
Nobuyoshi Nakada wrote:
> ...
Is it? If th...
sowieso (So Wieso)

10/06/2014

12:49 PM Ruby Feature #10320: require into module
I chose the symbol `:Lib`, as I thought Ruby would complain if the constant `Lib` would not exist at this time. The keyword `in` would define it, if it would not exist. I would prefer if we could solve it without using symbols, but writi... sowieso (So Wieso)

Also available in: Atom