Skip to content

Commit b3651b1

Browse files
committed
fixup! Add blog article about import suggestions
1 parent 873b5f8 commit b3651b1

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

blog/_posts/2020-05-05-scala-3-import-suggestions.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ by: Julien Richard-Foy, Scala Center
55
title: Import Suggestions in Scala 3
66
---
77

8-
Scala’s implicits might be at the same time the most distinguished and the most
9-
controversial feature of the language. There is evidence that working with implicits can be a
10-
frustrating experience. Thankfully, the Scala 3 compiler will dramatically
11-
improve the quality of the error messages shown in case of missing implicit so
12-
that it will be easier to see _where_ an implicit argument could not be inferred
8+
Implicits let the compiler “write” significant parts of a program for you.
9+
For instance, the compiler can summon JSON serializers and deserializers for
10+
a complete type hierarchy.
11+
12+
However, working with implicits can be a difficult experience. Thankfully, the
13+
Scala 3 compiler dramatically
14+
improves the quality of the error messages shown in case of missing implicit so
15+
that it is easier to see _where_ an implicit argument could not be inferred
1316
by the compiler, and _how_ to fix the problem.
1417

1518
This article shows these improvements in action in concrete examples of code.
@@ -25,8 +28,8 @@ faced?”
2528
We also saw that 35% of the respondents of the [2019 developer survey] signaled
2629
that dealing with missing implicits was a main pain point in their daily
2730
workflow. Furthermore, they signaled that the two most painful issues they had
28-
when working with implicits were “finding which parameters have been inferred”
29-
(46%), and “fixing 'implicit not found' errors” (41%). Last but not least, the
31+
when working with implicits were “finding which parameters have been inferred”,
32+
and “fixing 'implicit not found' errors”. Last but not least, the
3033
word that was most mentioned by the respondents to describe their other pain points
3134
related to implicits is the word “import”.
3235

0 commit comments

Comments
 (0)