Created
January 22, 2013 20:57
-
-
Save channingwalton/4598348 to your computer and use it in GitHub Desktop.
Not cake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait FooComponent { | |
def bar: BarComponent#Bar | |
case class Foo(foofy: String) | |
} | |
trait BarComponent { | |
def foo: FooComponent#Foo | |
case class Bar(bah: String) | |
} | |
object System extends App with FooComponent with BarComponent { | |
val foo = Foo("foo") | |
val bar = Bar("bar") | |
println(s"${foo.foofy} and ${bar.bah}") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So, what can cake do that this can't?
What else?