name="test"just gets fresh'd to
==method that takes 2 Float64's at the module level? For some reason the compiler thinks I'm trying to define a setter method and yells about syntax...
module MyModule def ==(x : Float64, y : Float64) # setter method '==' cannot have more than one argument ... end end
nearly_equals?seems to be the desired behavior. I'll have to inspect it to see if it is semantically equivalent with what I need.
=~for the language's Float type. I was hoping to not monkey patch the whole language, if that is what this is doing, and only introduce this overload when used in my specific module.
=~of 2 floats.
struct FloatWrapper @value : Float64 forward_missing_to @value def initialize(@value : Float64); end def special_method end end