Skip to content
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

The Value Classes guide should be part of the Scala Book #2812

Open
julienrf opened this issue May 25, 2023 · 1 comment
Open

The Value Classes guide should be part of the Scala Book #2812

julienrf opened this issue May 25, 2023 · 1 comment

Comments

@julienrf
Copy link
Contributor

We would like the Scala Book to be a complete documentation of the language.

The guide Value Classes and Universal Traits should be merged into the Scala Book. This page is specific to Scala 2 (the Scala 3 way to achieve the same result is to use opaque types) and should be labeled as such. I think a good place to put this page would be just after the Opaque Types page.

@bishabosha
Copy link
Member

bishabosha commented Jul 14, 2023

This page is specific to Scala 2 (the Scala 3 way to achieve the same result is to use opaque types)

it was suggested in #2863 (review) by @sjrd that maybe we should still port the examples to scala 3, so then maybe we would only recommend in the "motivation" to use opaque types in Scala 3

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

No branches or pull requests

2 participants