Skip to content

Commit 1007577

Browse files
committed
Adress reviewer comments
1 parent a883291 commit 1007577

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

blog/_posts/2016-12-05-implicit-function-types.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ implicit parameter:
149149

150150
(implicit thisTransaction: Transaction)
151151

152-
A three-times repetition might not look so bad here, but it certainly
152+
Having to repeat three-times might not look so bad here, but it certainly
153153
smells of boilerplate. In real-sized projects, this can get much worse.
154154
For instance, the _dotty_ compiler uses implicit abstraction
155155
over contexts for most of its parts. Consequently it ends up with currently
@@ -229,7 +229,7 @@ conversion establishes the necessary context to make type checking `t`
229229
succeed by defining the required implicit parameters.
230230

231231
There is one final tweak to make this all work: When using implicit parameters
232-
for nested functions it was so far important to give all implicit parameters
232+
for nested functions it was so far necessary to give all implicit parameters
233233
of the same type the same name, or else one would get ambiguities. For instance, consider the
234234
following fragment:
235235

@@ -354,7 +354,7 @@ this blog post is already too long.
354354

355355
## Conclusion
356356

357-
Implicit function types are unique way to abstract over the context in
357+
Implicit function types are a unique way to abstract over the context in
358358
which some piece of code is run. I believe they will deeply influence
359359
the way we write Scala in the future. They are very powerful
360360
abstractions, in the sense that just declaring a type of a function

0 commit comments

Comments
 (0)