ts-pattern
fsharp.org
ts-pattern | fsharp.org | |
---|---|---|
38 | 7 | |
10,907 | 288 | |
- | 0.7% | |
8.6 | 5.6 | |
19 days ago | about 2 months ago | |
TypeScript | TeX | |
MIT 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.
ts-pattern
-
You Don't Need React
ts-pattern has been a decent band-aid for the lack of native pattern matching, but obviously has downsides that could be avoided if it was built into the language.
https://github.com/gvergnaud/ts-pattern
- Stop nesting ternaries
-
Building React Components Using Unions in TypeScript
ts-pattern
- Pattern Matching Library for TypeScript
-
TypeScript Is Surprisingly OK for Compilers
With how powerful the type system is you can implement pattern matching via a library pretty convincingly, https://github.com/gvergnaud/ts-pattern is definitely the go-to. That being said pattern matching is hardly a requirement for being ok for implementing compilers.
-
How to achieve type safety here possible without "type hacks"?
https://github.com/gvergnaud/ts-pattern might help
- ts-pattern v5
-
[AskJS] C# in every Node.js job posting?
There's a proposal to add something like that to JavaScript but it's been stuck in limbo since 2017 although there are libraries like ts-pattern which implement it already.
- Simplifying Dynamic Classes in Vue with the class-variance-authority library | cdruc.com
- Rust Appreciation Thread
fsharp.org
-
Top Paying Programming Technologies 2024
3. F# - $99,311
-
Roc – A fast, friendly, functional language
Oh yeah. A key hindrance of F# is that MS treats it like a side project even though it's probably their secret weapon, and a lot of the adopters are dotnet coders who already know the basics so the on-boarding is less than ideal.
https://fsharp.org/ is the best place to actually start.
https://fsharpforfunandprofit.com/ is the standard recommendation from there but there's finally some good youtube and other content out there.
-
Building React Components Using Unions in TypeScript
Naturally I’d recommend using a better language such as ReScript or Elm or PureScript or F#‘s Fable + Elmish, but “React” is the king right now and people perceive TypeScript as “less risky” for jobs/hiring, so here we are.
- Earning the privilege to work on unoriginal problems
-
I am a ChatGPT bot - Ask me anything #2
Are you really a bot? Yes, I'm a small F# program that glues together the public API's provided by Reddit and OpenAI. I was created by /u/brianberns. You can find my source code here.
-
I am a ChatGPT bot
The bot is written in F#, which is a .NET language (like C#).
-
Full Paket Tutorial Video (Paket vs NuGet for F# Package Management)
I created an issue here for the documentation change: https://github.com/fsharp/fsfoundation/issues/857
What are some alternatives?
pattern-grab - 🤛🏻 Regular Expression Data Grabber
effect - A fully-fledged functional effect system for TypeScript with a rich standard library
ts-adt - Generate Algebraic Data Types and pattern matchers
rescript-compiler - The compiler for ReScript.
await-to-js - Async await wrapper for easy error handling without try-catch
askai - Command Line Interface for OpenAi ChatGPT
union-types - A Typescript library for creating discriminating union types.
purescript - A strongly-typed language that compiles to JavaScript
ts-option
proposal-pattern-matching - Pattern matching syntax for ECMAScript
typescript-coverage-report - Node command tool to generate TypeScript coverage report