Skip to content

docs(tour): clarify usefulness of context bounds with type classes#3256

Open
Dev-CodeBox wants to merge 4 commits into
scala:mainfrom
Dev-CodeBox:tour-context-bounds
Open

docs(tour): clarify usefulness of context bounds with type classes#3256
Dev-CodeBox wants to merge 4 commits into
scala:mainfrom
Dev-CodeBox:tour-context-bounds

Conversation

@Dev-CodeBox
Copy link
Copy Markdown
Contributor

This PR updates the Implicit Parameters tour page to:

  • Highlight that context bounds are especially useful with type classes, where a type requires an associated contextual value.
  • Ensure the explanation of context bounds and examples are clear and concise for both Scala 2 and Scala 3.
  • Minor formatting and wording improvements for readability


```scala
// does not compile:
```scala mdoc:fail
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesnt include the error in the output, but in this case the error message is the point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants