thautwarm/MLStyle.jl

`@match :(if true; end) :(if true; end) => 1` fails

jariji opened this issue · 1 comments

jariji commented

This fails to match. Is this expected?

@match :(if true; end) :(if true; end) => 1

This is because line numbers are automatically inserted into your quotations:

@match :(if true; end) :(if true; $(lines...) end) => lines

1-element view(::Vector{Any}, 1:1) with eltype Any:
 :(#= REPL[4]:1 =#)

MLStyle uses a strict match so that we can distinguish the cases that involve subtle differences.