Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Five-minute Multimethods in Python. Parent comment
Some advanced dispatch code can notice that some tuples are dispatched more often that the rest and can check for them first.
Ditto for dict lookup.
But this would unexpected for switch code.
There are no comments on this comment yet.
Some advanced dispatch code can notice that some tuples are dispatched more often that the rest and can check for them first.
Ditto for dict lookup.
But this would unexpected for switch code.