MatchCore.jl

Non-extensible/hardcoded pattern matching, core of MLStyle
Author thautwarm
Popularity
16 Stars
Updated Last
2 Years Ago
Started In
May 2020

MatchCore

Build Status Codecov

A minimal implementation of optimized pattern matching.

It is extracted from MLStyle.jl and sightly modified, for users who don't need advanced features like extensible patterns.

It's faster to startup, produce efficient and "runtime free" code equivalent to MLStyle.

MatchCore lacks of many non-primitive patterns, like Dicts, ranges, view/active patterns.

However, expression matching is still available:

julia> @smatch :(a.(b, c)) begin
           :($a.($(bc...))) => (a, bc)
       end
(:a, Any[:b, :c])

Required Packages

No packages found.

Used By Packages