General

Profile

p8 (Petrik de Heus)

  • Login: p8
  • Registered on: 10/21/2019
  • Last connection: 11/17/2022

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 0 1

Activity

11/17/2022

07:33 AM Ruby master Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
I'm seeing some overlap with "Object#with to set and restore attributes around a block" https://bugs.ruby-lang.org/is... p8 (Petrik de Heus)

09/01/2022

10:37 AM Ruby master Feature #18951: Object#with to set and restore attributes around a block
Or maybe making the restore more explicit
``` ruby
obj.assign_attrs(foo: "bar") do
# do something
end.restore
```
...
p8 (Petrik de Heus)

08/28/2022

03:14 PM Ruby master Feature #18959: Handle gracefully nil kwargs eg. **nil
LevLukomskyi (Lev Lukomskyi) wrote:
>
> I enjoy writing something like this in ruby on rails:
>
> ```ruby
> co...
p8 (Petrik de Heus)

08/18/2022

05:06 PM Ruby master Feature #18965: Further Thread::Queue improvements
Hi Jean,
Should that second code example use `items` instead of `item`?
``` ruby
queue.concat(items)
```
p8 (Petrik de Heus)

05/24/2022

08:19 PM Ruby master Feature #14602: Version of dig that raises error if a key is not present
Maybe:
``` ruby
fetch_each(:name, :first)
fetch_all(:name, :first)
fetch_tail(:name, :first)
fetch_end(:name, :firs...
p8 (Petrik de Heus)

02/15/2022

02:53 PM Ruby master Feature #12962: Feature Proposal: Extend 'protected' to support module friendship
I can imagine having a `protected_send` just like we have a `public_send` and `send` (which is basically `private_sen... p8 (Petrik de Heus)

10/06/2021

11:19 AM Ruby master Feature #12075: some container#nonempty?
If `size?` will be chosen, should we also add `length?` as `size` and `length` are aliases? p8 (Petrik de Heus)

09/20/2021

12:52 PM Ruby master Misc #18175: Propose Jean Boussier (@byroot) as a core committer
Congrats Jean!
Petrik
p8 (Petrik de Heus)

08/19/2021

06:57 AM Ruby master Feature #12075: some container#nonempty?
duerst (Martin Dürst) wrote in #note-28:
> I agree with @gotoken that `filled?` is confusing.
Yes, it might be conf...
p8 (Petrik de Heus)

08/17/2021

05:43 AM Ruby master Feature #12075: some container#nonempty?
What about `ary.filled?` ?
It nicely pairs with empty and is not too long.
It’s also a property of the container. An...
p8 (Petrik de Heus)

Also available in: Atom