Skip to content

Commit

Permalink
Try a little more evocative opening
Browse files Browse the repository at this point in the history
  • Loading branch information
S11001001 committed Mar 1, 2017
1 parent 13ecc3f commit cd43f1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion posts/2017-03-01-four-ways-to-escape-a-cake.md
Expand Up @@ -13,7 +13,8 @@ within traits, as seen in `scala.reflect.Universe`, ScalaTest, and
other Scala styles, seems to be infectious. By that, I mean once you
define something in a trait to be mixed in, to produce another
reusable module that calls that thing, you must define *another*
trait, and so must the downstream of that, and so on and so forth.
trait, and so must anyone using *your* module, and so on and so forth.
You effectively become “trapped in the cake”.

However, we can use type parameters that represent **singleton types**
to write functions that are polymorphic over these “cakes”, without
Expand Down

0 comments on commit cd43f1f

Please sign in to comment.