A

A sum-type decorator for python

Hacker News

A sum-type decorator for python

I wrote this quick decorator for sum-types and was looking for feedback on if it makes sense. I had to do something similar for work with weird looking if-else blocks with type checks. I'm also looking for pointers to existing libs that add this and other FP features to python. Comments on the state of FP-like python at work are welcome! https://github.com/stangirala/python-sumtype-decorator

Share card

Actual performance

2points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Hacker NewsStrong engagement from HN community · Strong signals: exist, existing · Missing: https docs, excited, just released
52%52% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Product HuntUnlikely to reach the leaderboard · Missing: mac, agents, macos
37%37% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
35%35% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
34%34% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Indie HackersIH features products with proven revenue · Missing: supports, reddit linkedin, podcasting
29%29% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
17%17% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

A
A Python with Hindley-Milner-like type annotations, compiling to C63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Python with Hindley-Milner-like type annotations, compiling to C

Hacker News134
Re
Rescue – type-safe exceptions for Python38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Rescue – type-safe exceptions for Python

Hacker News7
Ma
Math Type for Python57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Math Type for Python

Hacker News4
Ru
Rune’s Secret Type Ported to Python50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Rune’s Secret Type Ported to Python

Hacker News2
Co
Compile Python libraries for TypeScript with type completion (umo)61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Compile Python libraries for TypeScript with type completion (umo)

Hacker News1
We
We built a type-safe Python ORM for RedisGraph/FalkorDB54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

We built a type-safe Python ORM for RedisGraph/FalkorDB

Hacker News5
Ob
Obiwan: type checking for Python43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Obiwan: type checking for Python

Hacker News2
Cu
CustomStringParser ( Python)54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CustomStringParser ( Python)

Hacker News1
Lu
Lusernews is an implementation of lamernews in python48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Lusernews is an implementation of lamernews in python

Hacker News1
Do
Do/While in Python55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Do/While in Python

Hacker News4