proposal-enum
ts-pattern
proposal-enum | ts-pattern | |
---|---|---|
4 | 38 | |
84 | 10,983 | |
- | - | |
0.0 | 8.6 | |
about 2 years ago | 12 days ago | |
HTML | TypeScript | |
MIT License | 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.
proposal-enum
-
TypeScript Is Surprisingly OK for Compilers
Very much apropos:
Going between Rust and TS it is painfully obvious how much sth like tagged enums are missing, which can also be seen in this post.
I know of this [1] proposal for ADT enums which looks like it has stalled. Anyone know of other efforts?
[1] https://github.com/Jack-Works/proposal-enum/discussions/19
-
Will Carbon Replace C++?
Not forever if this ever comes through,
https://github.com/Jack-Works/proposal-enum
-
What's up with all the enum hate lately?
Yep, that's the right example. It's aligned with current JS standards - https://github.com/Jack-Works/proposal-enum is currently the most likely enum proposal to get put forwards ATM
-
TypeScript Features to Avoid
There's a native enums for ECMAScript proposal on the agenda for the next TC39 meeting.
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
What are some alternatives?
caya - a tiny useful simple language experiment
pattern-grab - 🤛🏻 Regular Expression Data Grabber
sanitizers - AddressSanitizer, ThreadSanitizer, MemorySanitizer
ts-adt - Generate Algebraic Data Types and pattern matchers
roast - 🦋 Raku test suite
await-to-js - Async await wrapper for easy error handling without try-catch
doc - 🦋 Raku documentation
union-types - A Typescript library for creating discriminating union types.
carbon-lang - Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)
ts-option
typescript-coverage-report - Node command tool to generate TypeScript coverage report
proposal-pattern-matching - Pattern matching syntax for ECMAScript