Skip to content

johnnychen94/MatchCore.jl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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])

About

non-extensible/hardcoded pattern matching, core of MLStyle

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Julia 100.0%