don't say compromise

@dherman doesn't like it 😄
This commit is contained in:
Steve Klabnik 2014-09-05 06:38:53 -04:00
parent 67b97ab6d2
commit d929d83eec
1 changed files with 1 additions and 1 deletions

View File

@ -765,7 +765,7 @@ This is a deliberate design decision. While full-program inference is possible,
languages which have it, like Haskell, often suggest that documenting your
types explicitly is a best-practice. We agree that forcing functions to declare
types while allowing for inference inside of function bodies is a wonderful
compromise between full inference and no inference.
sweet spot between full inference and no inference.
What about returning a value? Here's a function that adds one to an integer: