Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
paulddraper
on Dec 17, 2018
|
parent
|
context
|
favorite
| on:
Pampy: Pattern Matching for Python
> Additionally it is possible to code the match function to implement the functionality I am talking about during runtime instead of compile time.
Maybe, but I'm not sure there's more value in that.
crimsonalucard
on Dec 17, 2018
[–]
Having match crash immediately helps you identify the branch error without explicitly writing a test case for it. It is equivalent to raising an exception.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Maybe, but I'm not sure there's more value in that.