irb(main):009:0> Date.new("".to_i) => #<Date: 0000-01-01 ((1721058j,0s,0n),+0s,2299161j)>
irb(main):010:0> Date.new("") ArgumentError: comparison of String with 0 failed from (irb):10:in `<' from (irb):10:in `new' from (irb):10 from /usr/bin/irb:11:in `<main>'
dry-equalizerand tweak it a little bit; seems like Dan hasn’t got the time to maintain it and equalizer is heavily used by lots of projects so it’s harder to make changes in it
Object#coercewhich was a design mistake, it goes back to the roots of this library which is axiom gem where this behavior was useful, but as a generalized interface it’s actually causing issues (and makes it slower too)
dry-equalizerwould be an awesome addition