Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobiasd committed Nov 17, 2013
1 parent ab4b712 commit 261c8e5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions from_oop_to_fp_-_inheritance_and_the_expression_problem.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ boilerplate dispatch code for every new class we invent. Not cool.
So perhaps our [ADT](http://en.wikipedia.org/wiki/Algebraic_data_type) is
not of the right kind for this job.
OK, let's try to represent our types just by the functions we need:
(Many thanks to Jeff Smits from the [Elm mailing list](https://groups.google.com/forum/?fromgroups#!forum/elm-discuss) for this.)
(Many thanks to Jeff Smits from the [Elm mailing list](https://groups.google.com/forum/?fromgroups#!forum/elm-discuss) for this idea.)

```haskell
-- Base.hs
Expand Down Expand Up @@ -443,12 +443,13 @@ main =
## Conclusion

Yeah, and that is it. Thanks to the fact that we can handle functions
like data in FP, we can have our desired comfort for software that often gets
as data in FP, we can have our desired comfort for software that often gets
new types and rarely new functions, despite the presence of a
stong static type system. We now can invent hundret new subtypes like
stong static type system. We now can invent hundreds of new subtypes like
[baz and qux](http://en.wikipedia.org/wiki/List_of_recurring_Mario_franchise_enemies)
and easily add them to our world. We do not have to edit a central monster
module with spaghetti functions for the actions of all the different types. Everything is neatly arranged in the modules of the actual type.
and easily add them to our world. We do not have to edit central monster functions for the actions of all the different types. Everything is neatly arranged in the modules of the actual type.

---------------------------------------

If there already is a more idiomatic solution in Haskell for this, or you
have an Idea for a more elegant approach, please [tell](mailto:harry@daiw.de)
Expand Down

0 comments on commit 261c8e5

Please sign in to comment.