General

Profile

danh337 (Dan H)

  • Login: danh337
  • Registered on: 03/30/2021
  • Last connection: 10/06/2021

Issues

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

Activity

02/26/2022

11:56 PM Ruby master Feature #18597: Strings need a named method like `dup` that doesn't duplicate if receiver is mutable
Updated timing check code to be more fair. danh337 (Dan H)
11:20 PM Ruby master Feature #18597: Strings need a named method like `dup` that doesn't duplicate if receiver is mutable
This is my last attempt to show why this named method is needed. The `driver.rb` file shows the patterns that apply t... danh337 (Dan H)

02/22/2022

08:31 PM Ruby master Feature #18597: Strings need a named method like `dup` that doesn't duplicate if receiver is mutable
At one time there were other folks who cared about this, in #16295, but it feels like I'm the only one now. And it fe... danh337 (Dan H)
07:10 PM Ruby master Feature #18597: Strings need a named method like `dup` that doesn't duplicate if receiver is mutable
Fixed in our extensions lib.
```
class Object
# A chainable name mainly for `String#+@`.
#
def thaw
...
danh337 (Dan H)
07:02 PM Ruby master Feature #18597: Strings need a named method like `dup` that doesn't duplicate if receiver is mutable
Eregon (Benoit Daloze) wrote in #note-10:
> I meant code in a gem or in some open-source repository, so we can see t...
danh337 (Dan H)
02:56 PM Ruby master Feature #18597: Strings need a named method like `dup` that doesn't duplicate if receiver is mutable
Eregon (Benoit Daloze) wrote in #note-8:
> A real-world example would be interesting. But I guess there isn't a comp...
danh337 (Dan H)

02/21/2022

11:58 PM Ruby master Feature #18597: Strings need a named method like `dup` that doesn't duplicate if receiver is mutable
Description updated again. I missed the subtlety in the case that the buffer had to be dup'ed.
There are many more...
danh337 (Dan H)
11:10 PM Ruby master Feature #18597: Strings need a named method like `dup` that doesn't duplicate if receiver is mutable
Dan0042 (Daniel DeLorme) wrote in #note-1:
> Please give a concrete example of code that would benefit from such a m...
danh337 (Dan H)
08:35 PM Ruby master Feature #18597 (Open): Strings need a named method like `dup` that doesn't duplicate if receiver is mutable
This is related to #16295, but focuses only on the `.+@` part.
Currently we can use `.dup` in a method chain when ...
danh337 (Dan H)
08:55 PM Ruby master Feature #18595: Alias `String#-@` as `String#dedup`
byroot (Jean Boussier) wrote in #note-11:
> > So if -"blah" does do interning
>
> Quick sidenote, it's best not t...
danh337 (Dan H)

Also available in: Atom