General

Profile

RubyBugs (A Nonymous)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 2 6 8

Like

Activity

06/10/2024

05:05 PM Ruby master Feature #19001: Data: Add #to_h symmetric to constructor with keyword args [Follow-on to #16122 Data: simple immutable value object]
Agreed, this need ended up being met by the initial implementation! Thank you, closing this ticket.
zverok (Victor...
RubyBugs (A Nonymous)

12/07/2022

08:44 PM Ruby master Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
Hi @mame! Thank you for your questions.
mame (Yusuke Endoh) wrote in #note-24:
> Thanks for the update.
>
> Now I h...
RubyBugs (A Nonymous)

12/03/2022

04:29 PM Ruby master Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]

> …treats unknown keywords passed to this method as an error. I had already made it clear that I thought it should ...
RubyBugs (A Nonymous)
02:09 PM Ruby master Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
ufuk (Ufuk Kayserilioglu) wrote in #note-28:
> Thank you @matz. I will update the implementation to make the no-args ...
RubyBugs (A Nonymous)

11/30/2022

07:58 PM Ruby master Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
For comparison, you can plug in the following example code for a faster implementation of `#with` and it should work ... RubyBugs (A Nonymous)
07:52 PM Ruby master Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
mame (Yusuke Endoh) wrote in #note-17:
> @RubyBugs Please check my comment https://bugs.ruby-lang.org/issues/19000#no...
RubyBugs (A Nonymous)

11/28/2022

07:15 PM Ruby master Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
bdewater (Bart de Water) wrote in #note-15:
> I like `dup` as the method name 👍
>
Is there a way we could get m...
RubyBugs (A Nonymous)

10/26/2022

06:16 PM Ruby master Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
> it should be an error to supply a keyword argument that the Data class does not have as members
+1 Agree!
**P...
RubyBugs (A Nonymous)

10/21/2022

05:22 PM Ruby master Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
Example from [value_semantics](https://github.com/tomdalling/value_semantics) gem which uses `with` as well:
```ruby...
RubyBugs (A Nonymous)

09/08/2022

07:50 PM Ruby master Feature #16122: Data: simple immutable value object
I've filed a 2nd follow-up ticket [here](https://bugs.ruby-lang.org/issues/19001) for the Symmetric `#to_h` method wh... RubyBugs (A Nonymous)

Also available in: Atom