I discovered following this guide: https://grpc.io/docs/tutorials/basic/ruby.html#example-code-and-setup The minimal setup to reproduce the error is the following: 1. install Ruby 2.6.0p0 and make it active (ex: `rbenv install 2.6.0`...adrianomitre (Adriano Mitre)
It is my understanding that ~~~ v.map { |x| x.foobar } ~~~ should always be equivalent to ~~~ v.map(&:foobar) ~~~ The following shows a case, involving refinements, where this is not the case. ~~~ module MyExtensions ...adrianomitre (Adriano Mitre)
=begin BigDecimal#integer? always return false, which is wrong in many cases, as shown below. x, y = BigDecimal('1'), BigDecimal('1.0') x.integer? #=> false y.integer? #=> false x == x.to_i #=> true y == y.to_i...adrianomitre (Adriano Mitre)
BigDecimal numbers too small to be representable in Float are incorrectly converted to +/-Infinity instead of 0.0 (or -0.0). Things seem to broke down when exponent is about -308. # with 307, ok BigDecimal('1e-307').to_f # => 1.0e-3...adrianomitre (Adriano Mitre)