File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -178,9 +178,9 @@ val stream = downloadStream(
178
178
```
179
179
180
180
Forcing the user to construct this tree-shaped ` case class ` data structure is an abstraction leak:
181
- the user has to write code matching the internal implementation details and code sharing of
182
- the ` def download ` methods, and construct the corresponding ` case class ` tree, even though they
183
- may really only care about calling a single ` downloadAsync ` method.
181
+ the user has to write code matching the internal implementation details and code sharing
182
+ relationships of the ` def download ` methods to construct the corresponding ` case class ` tree,
183
+ even though they may really only care about calling a single ` downloadAsync ` method.
184
184
185
185
There are other more sophisticated ways that a library author can try to mitigate this -
186
186
e.g. builder patterns - but the fundamental problem is unsolvable today. ` unpack ` /` * ` solves
You can’t perform that action at this time.
0 commit comments