You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.
First, let just thank you so much for your work on this. Python is inescapable for many people working in data/machine learning, but any modern language should have sum types and pattern matching! Somehow Javascript sorted it out with Typescript. This really should be a standard feature with support for standard | sum type syntax 😖
Ok. Rant complete.
Are you considering adding a default option for pattern matching? I know that there are arguments against it, but otherwise you end up writing things like:
e.match(
VAR1=lambdax: f(x)
VAR2=lambda_: g()
VAR3=lambda_: g()
VAR4=lambda_: g()
# you get the idea...
)
The text was updated successfully, but these errors were encountered:
First, let just thank you so much for your work on this. Python is inescapable for many people working in data/machine learning, but any modern language should have sum types and pattern matching! Somehow Javascript sorted it out with Typescript. This really should be a standard feature with support for standard
|
sum type syntax 😖Ok. Rant complete.
Are you considering adding a default option for pattern matching? I know that there are arguments against it, but otherwise you end up writing things like:
The text was updated successfully, but these errors were encountered: