Match.jl
Match.jl copied to clipboard
Match no longer handling regex
behavior that worked with Match in 0.3:
const emptyline = r"^(\s*)$"
x = " "
@match x begin
emptyline(x) => print("nothing there")
_ => print("else")
end
now throws:
ERROR: TypeError: isa: expected Type{T}, got Regex