match-iz
crocks
match-iz | crocks | |
---|---|---|
11 | 4 | |
133 | 1,582 | |
- | - | |
6.6 | 0.0 | |
16 days ago | over 1 year ago | |
JavaScript | JavaScript | |
MIT License | ISC License |
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.
match-iz
-
match-iz: a tiny pattern-matching library
Thank you, and it does!
-
Javascript futures and Result monads belong together
I do enjoy a bit of monad'ing. I often use this minimal Maybe in projects, inspired by Folktale and Crocks.
-
Defeating Javascript Obfuscation
I've done a little myself with eslint-plugins and codemods and found it useful for avoiding repetition and ?.. There's a TC39 proposal that's in the works, but I got impatient and wrote a small lib that tries to provide the same functionality.
-
Upcoming ECMAScript features I'm excited about
I'm doing my part, though!
-
[AskJS] favorite JavaScript library
Honestly, my own. Not that I can take credit for the fundamental shape of the API -- it's directly inspired by the TC39 pattern-matching proposal. Still, I use it all the time and can't wait for the day when I don't have to.
-
oxide.ts - my Rust-inspired Option/Result and match library - Version 1.0 Release
Slightly related is this pattern matching library I saw the other week, you might be interested: https://github.com/shuckster/match-iz
- match-iz: A tiny pattern-matching library in the style of the TC39 proposal
-
Does JavaScript have an equivalent for this?
JavaScript doesn't have that natively yet, but you can get close using a library:
-
[AskJS] Why does our community hate Operator Overloading?
While pattern-matching doesn't exist in the language yet, there are many libraries on NPM for it, and it looks applicable for your own use-cases. (Full disclosure: The above example is from my own.)
-
Pattern matching = switch++
After learning about the exciting, but sadly only Stage 1 proposal for pattern-matching in JavaScript, I felt compelled to write a library that tries to, erm, match it as closely as I could:
crocks
-
Javascript futures and Result monads belong together
I do enjoy a bit of monad'ing. I often use this minimal Maybe in projects, inspired by Folktale and Crocks.
-
Fp library for JS
It's probably the most popular one. Crocks is quite good if you get deeper into FP (https://crocks.dev/) and its creator has a number of live coding videos on his channel https://www.youtube.com/user/TheEvilSoft
-
Real world examples of functional JavaScript?
I've found videos by the author of the Crocks library (https://crocks.dev/) very helpful - 'Working with ADTs', 'Practical ADTs' 'Livecode' sessions.
-
Grandma's recipes for cooking redux
Crocks
What are some alternatives?
Zeronode - Zeronode - minimal building block for NodeJS microservices
ramda - :ram: Practical functional Javascript
proposal-pattern-matching - Pattern matching syntax for ECMAScript
scriptum - Functional Programming Unorthodoxly Adjusted to Client-/Server-side Javascript
bhai-lang - A toy programming language written in Typescript
cpsfy - 🚀 Tiny goodies for Continuation-Passing-Style functions, fully tested
proposal-operator-overloading
mrust - Monads for Rust
ohm - A library and language for building parsers, interpreters, compilers, etc.
functional-javascript - :tada: A list of functional javascript resources
effect - An ecosystem of tools to build robust applications in TypeScript.
curryjack - 🍛Curryjack - Game using Open Data Curry / カレージャック - オープンデータを使ったゲームアプリ