yieldpattern
Match.jl
yieldpattern | Match.jl | |
---|---|---|
1 | 2 | |
4 | 236 | |
- | 0.0% | |
1.8 | 4.1 | |
about 3 years ago | 5 months ago | |
TypeScript | Julia | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
yieldpattern
-
Pattern Matching Accepted for Python
I’m writing a TypeScript package for pattern matching by using generator functions.
https://github.com/RoyalIcing/yieldpattern
It’s amazing to me how much pattern matching, well, matches how I think. A conditional if statement means I have to explicitly read properties off an object or inspect an array to check for what I want. Whereas pattern matching means asking ‘I want something that looks like this’ and do the work for me.
Match.jl
- Let's talk about interesting language features.
-
Pattern Matching Accepted for Python
I can only agree. Compared to other languages I find Python increasingly difficult to reason about, mainly due to its dynamicity. If the language complexity increases as well from now on I don't think I will use Python unless absolutely necessary.
Meanwhile, Julia supports pattern matching due to macros: https://github.com/kmsquire/Match.jl
What are some alternatives?
trivia - Pattern Matcher Compatible with Optima
MLStyle.jl - Julia functional programming infrastructures and metaprogramming facilities
peps - Python Enhancement Proposals
python-imphook - Simple and clear import hooks for Python - import anything as if it were a Python module
gcc
flynt - A tool to automatically convert old string literal formatting to f-strings
cQuents - An esoteric golflang that can describe mathematical sequences and series
webgl - Functional rendering with WebGL in Elm