General

Profile

jtannas (Joel Tannas)

  • Login: jtannas
  • Registered on: 11/11/2020
  • Last sign in: 03/13/2025

Issues

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

Activity

03/14/2025

12:30 AM Ruby Bug #21184: SyntaxError when combining `in` with inline hash-rocket (`=>`)
Thank you for the prompt reply Alan.
Sorry I missed that line while skimming through that document prior to submitting.
I think I need to do some more reading up on the `=>` operator.
jtannas (Joel Tannas)

03/13/2025

10:38 PM Ruby Bug #21184 (Rejected): SyntaxError when combining `in` with inline hash-rocket (`=>`)
I believe the following should be valid syntax but it's throwing a `SyntaxError`:
``` ruby
{ a: 1 } in { a: 1 } # => true
{ a: 1 } in { a: Integer } # => true
pattern = { "a" => 1 }; { "a" => 1 } in pattern # => true
{ "a" => 1 } in...
jtannas (Joel Tannas)

05/11/2021

07:02 PM Ruby Bug #17631: `Numeric#real?` incorrectly returns true for `NaN` and `INFINITY`
Fair enough - If we're not worrying about following the mathematical definitions too closely then we can gloss over a lot of these details about the definition of "real numbers" and leave it as-is. Instead, how about a new method `#ratio... jtannas (Joel Tannas)

02/18/2021

12:48 AM Ruby Bug #17631: `Numeric#real?` incorrectly returns true for `NaN` and `INFINITY`
Sorry for the slow reply - I had to go get a lesson from our resident mathematician.
mrkn (Kenta Murata) wrote in #note-1:
> IEEE754 follows the extended real number system that is a real number system with positive and negative Infinit...
jtannas (Joel Tannas)

02/16/2021

02:53 AM Ruby Bug #17631 (Rejected): `Numeric#real?` incorrectly returns true for `NaN` and `INFINITY`
In mathematics, infinity is not a real number. See https://math.stackexchange.com/a/750787
I don't have a source for this, but I also believe that `NaN` is not a real number.
`Numeric#real?` incorrectly returns `true` for both of the...
jtannas (Joel Tannas)

Also available in: Atom