pattern-case VS yieldpattern

Compare pattern-case vs yieldpattern and see what are their differences.

pattern-case

Simple pattern matching in Typescript (by fatih-erikli)

yieldpattern

Pattern matching with switch statements and generation functions (by JavaScriptRegenerated)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
pattern-case yieldpattern
1 1
47 4
- -
1.2 1.8
over 2 years ago about 3 years ago
TypeScript TypeScript
- MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

pattern-case

Posts with mentions or reviews of pattern-case. We have used some of these posts to build our list of alternatives and similar projects.

yieldpattern

Posts with mentions or reviews of yieldpattern. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-02-09.
  • Pattern Matching Accepted for Python
    11 projects | news.ycombinator.com | 9 Feb 2021
    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.

What are some alternatives?

When comparing pattern-case and yieldpattern you can also consider the following projects:

trivia - Pattern Matcher Compatible with Optima

peps - Python Enhancement Proposals

python-imphook - Simple and clear import hooks for Python - import anything as if it were a Python module

MLStyle.jl - Julia functional programming infrastructures and metaprogramming facilities