Permalink
Browse files

README.md: corrected comment regarding forgetting to supply the abstr…

…act type L

     object MyEitherExtras extends EitherExtras {
       type L = SomethingOtherThanString
-      // N.B. the compiler no longer warns you if you forget to add this -
-      // it just won't compile whatever tries to import this object :-(
+      // N.B. If you forget to add this, you won't hear about it from
+      // the compiler until something tries to use it, which can be
+      // problematic it that something is compiled separately :-(
  • Loading branch information...
1 parent 7cdb1b6 commit 4cc5d7ae5b1dc414365c1b37e001724db9234fe8 @robcd committed May 6, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 README.md
View
@@ -48,8 +48,9 @@ object, and import that:
object MyEitherExtras extends EitherExtras {
type L = SomethingOtherThanString
- // N.B. the compiler no longer warns you if you forget to add this -
- // it just won't compile whatever tries to import this object :-(
+ // N.B. If you forget to add this, you won't hear about it from
+ // the compiler until something tries to use it, which can be
+ // problematic it that something is compiled separately :-(
}
Otherwise, you can mix it into your self type, or extend it straight

0 comments on commit 4cc5d7a

Please sign in to comment.