JuliaServices / Match.jl

Advanced Pattern Matching for Julia
https://juliaservices.github.io/Match.jl/latest/
Other
240 stars 22 forks source link

Share guard expressions that differ only by line number nodes. #87

Open gafter opened 1 year ago

gafter commented 1 year ago

Share evaluated results for guard expressions that differ only by line number nodes.

Similarly, we should consider sharing when identical by alpha-renaming.

mcmcgrath13 commented 1 year ago

Yes, I think these are both good improvements. Lets make sure the README/docs calls out that we do this sharing (cool optimization!) and that because of that when debugging only one call is expected and the variable name might not match what the user anticipated