General

Profile

Dan0042 (Daniel DeLorme)

  • Login: Dan0042
  • Registered on: 06/09/2016
  • Last sign in: 05/22/2026

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 16 27 43

Activity

06/04/2026

05:55 PM Ruby Feature #19315: Lazy substrings in CRuby
> `RSTRING_CSTR()` doesn't check whether `\0` is included in the target content or not.
That is a very good point. In that case, perhaps the new NUL-terminated macro should instead alias or behave similarly to `StringValueCStr()`. Other...
Dan0042 (Daniel DeLorme)

06/03/2026

05:56 PM Ruby Feature #19315: Lazy substrings in CRuby
I agree that completely deprecating RSTRING_PTR might not be strictly necessary, but for the sake of a smooth migration, I highly recommend introducing RSTRING_CSTR as an alias for the new, NUL-terminated RSTRING_PTR behavior.
Introdu...
Dan0042 (Daniel DeLorme)

04/01/2026

02:09 PM Ruby Misc #21975: Add "UTF-八" as an alias for UTF-8 encoding
duerst (Martin Dürst) wrote in #note-2:
> I think it's a good idea to allow "UTF-八" (and probably also full-width "UTF-八") as an alternative to "UTF-8" for internal Ruby use.
Indeed, but I believe "UTF-八" would be a better alias here...
Dan0042 (Daniel DeLorme)

03/19/2026

07:52 PM Ruby Feature #20215: Introduce `IO#readable?`
akr (Akira Tanaka) wrote in #note-14:
> My next question is why `io.eof?` and `io.wait_readable(0)` doesn't fulfill your motivation.
Might be worth answering this directly...
One reason is that `wait_readable` doesn't exist on Str...
Dan0042 (Daniel DeLorme)

03/17/2026

09:02 PM Ruby Feature #21858: `Kernel#Hash` considers `to_h` too
matz (Yukihiro Matsumoto) wrote in #note-9:
> Feeding `Hash()` with a method that may raise depending on runtime content makes the function less predictable, not more.
It's important to note that this is **already the case**; if you pas...
Dan0042 (Daniel DeLorme)

02/23/2026

04:56 PM Ruby Bug #21921: Hash inconsistent ==, >=, <= behavior
> > An entry `h0[k0]` in one hash is equal to an entry `h1[k1]` in another hash if and only if the two keys are equal (`k0 == k1`) and their two values are equal (`h0[k0] == h1[h1]`).
> ...
It doesn't just say "equal", it specifically m...
Dan0042 (Daniel DeLorme)

02/13/2026

06:27 PM Ruby Feature #21858: `Kernel#Hash` considers `to_h` too
mame (Yusuke Endoh) wrote in #note-7:
> I said `Kernel#Hash` is a strict conversion method.
It's true that `Integer()` is a strict conversion method, but `Array()` and `String()` are notably more lenient, and I've always seen `Hash()...
Dan0042 (Daniel DeLorme)
02:32 PM Ruby Feature #21858: `Kernel#Hash` considers `to_h` too
> ```ruby
> ...
This is not really a behavior **change** but more like a backward-compatible behavior **addition/extension**
It's really in the same vein as adding a method:
```ruby
{a:1,b:2}.except(:b) #Ruby 2.7: undefined method ...
Dan0042 (Daniel DeLorme)
02:44 PM Ruby Feature #21800: `Dir.scan` to list directory entires with their type
I like the feature, but it would be nice to provide an example that is not simply to reimplement `Dir["**/*.rb"].size` with 16x the lines of code. Something that demonstrates how it's more versatile than globbing. Dan0042 (Daniel DeLorme)

02/02/2026

07:36 PM Ruby Feature #21858: `Kernel#Hash` considers `to_h` too
+1
Actually I think this is just an oversight. #to_h was added to Struct, Hash, NilClass in Ruby 2.0, and to Array, Enumerable in Ruby 2.1; previously there was just #to_hash. And `Hash()` remained unchanged instead of adapting to the n...
Dan0042 (Daniel DeLorme)

Also available in: Atom