We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f6ca090 + b4a1f17 commit 4d57039Copy full SHA for 4d57039
.gitignore
@@ -3,3 +3,4 @@ _trial_temp
3
build/
4
effect.egg-info/
5
dist/
6
+*~
docs/source/intro.rst
@@ -76,8 +76,10 @@ based on the intent.
76
77
def main():
78
eff = greet()
79
- dispatcher = TypeDispatcher({ReadLine: perform_read_line})
80
- perform(dispatcher, effect)
+ dispatcher = ComposedDispatcher([
+ TypeDispatcher({ReadLine: perform_read_line}),
81
+ base_dispatcher])
82
+ perform(dispatcher, eff)
83
84
This has a number of advantages. First, your unit tests for ``get_user_name``
85
become simpler. You don't need to mock out or parameterize the ``raw_input``
0 commit comments