Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ianb
on Dec 7, 2011
|
parent
|
context
|
favorite
| on:
Five-minute Multimethods in Python
Since people are throwing out similar kinds of implementations, here's my pattern matching library (which is kind of the same thing as multimethods, but allowing more arbitrary matching than just based on type):
http://svn.colorstudy.com/home/ianb/recipes/patmatch.py
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
http://svn.colorstudy.com/home/ianb/recipes/patmatch.py