Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow one-liner match statements #96

Merged
merged 4 commits into from
Jul 10, 2020
Merged

Conversation

MasonProtter
Copy link
Contributor

Closes #93.

julia> using MLStyle

julia> @match 1 x => x + 1
2

I also updated the docs on pattern matching to include a note about the strucutre of @match and this syntax.

@codecov
Copy link

codecov bot commented Jul 9, 2020

Codecov Report

Merging #96 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #96   +/-   ##
=======================================
  Coverage   90.34%   90.34%           
=======================================
  Files          28       28           
  Lines        1336     1336           
=======================================
  Hits         1207     1207           
  Misses        129      129           
Impacted Files Coverage Δ
src/MatchImpl.jl 95.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6892753...9cb96e2. Read the comment docs.

@thautwarm
Copy link
Owner

I'll merge it after I get up.

@thautwarm thautwarm merged commit c698d31 into thautwarm:master Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: one-liner @match syntax
2 participants