Skip to content

Rematch should probably use isequal instead of == for floating-point types #35

Open
@gafter

Description

@gafter

This:

using Rematch
nan = 0.0 / 0.0
f(x) = @match x begin
    [a,a] => :same
    [a,b] => :different
    _ => :other
end
println(f([nan, nan]))

prints "different".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions