SkillAgentSearch skills...

MatchCore.jl

non-extensible/hardcoded pattern matching, core of MLStyle

Install / Use

/learn @thautwarm/MatchCore.jl
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

Related Skills

View on GitHub
GitHub Stars16
CategoryDevelopment
Updated3y ago
Forks2

Languages

Julia

Security Score

75/100

Audited on Aug 5, 2022

No findings