Skip to content

Adding more details to one-link answers of the FAQ #1851

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 13, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions _overviews/FAQ/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,13 @@ See the [Scala 2.13 Collections Guide](https://docs.scala-lang.org/overviews/col

### What are context bounds (`[T : Foo]`)?

Basically is sugar syntax for an `implicit` argument of type `Foo[T]`.
It's syntactic sugar for an `implicit` parameter of type `Foo[T]`.

More deatils in this [Stack Overflow answer](https://stackoverflow.com/a/4467012).
More details in this [Stack Overflow answer](https://stackoverflow.com/a/4467012).

### How does `for / yield` work?

In short it is sugar syntax for nested
`map`, `flatMap` & `withFilter` calls.
It is syntactic sugar for nested `map`, `flatMap`, and `withFilter` calls.

For an in-depth explanation
see this [Stack Overflow answer](https://stackoverflow.com/a/1059501).
Expand All @@ -99,8 +98,8 @@ see this [Stack Overflow answer](https://stackoverflow.com/a/1059501).

### Can I chain or nest implicit conversions?

Not really, but you can [make it work](https://stackoverflow.com/a/5332804)
_(although implicit conversions are, in general, discouraged)_.
Not really, but you can [make it work](https://stackoverflow.com/a/5332804).
But note that implicit conversions are, in general, discouraged.

### Where does Scala look for implicits?

Expand Down Expand Up @@ -155,7 +154,7 @@ and the [typeclass pattern](http://tpolecat.github.io/2013/10/12/typeclass.html)

This [blog post](http://tpolecat.github.io/2015/04/29/f-bounds.html)
argues against F-bounds and in favor of typeclasses.
Which is revisited with a discussion about the trade-offs of alternatives
Another discussions of trade-offs and alternatives is
in [this Stack Overflow post](https://stackoverflow.com/questions/59813323/advantages-of-f-bounded-polymorphism-over-typeclass-for-return-current-type-prob).

### What does `<:<` mean?
Expand Down