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

Undocumented Scala 3 compiler options #2940

Open
Bersier opened this issue Dec 22, 2023 · 2 comments
Open

Undocumented Scala 3 compiler options #2940

Bersier opened this issue Dec 22, 2023 · 2 comments
Labels

Comments

@Bersier
Copy link
Contributor

Bersier commented Dec 22, 2023

Several Scala 3 compiler flags seem to be undocumented.

For example, the only documentation I could find for -Wvalue-discard is on this page, which incorrectly starts with

This doc page is specific to features shipped in Scala 2, which have either been removed in Scala 3 or replaced by an alternative.

Another example is -Wnonunit-statement, which only seems to be unofficially documented in an announcement for Scala 2.13.9...

(Also, there doesn't even seem to be a documentation page for all Scala 3 compiler options.)

@bishabosha
Copy link
Member

bishabosha commented Dec 24, 2023

(Also, there doesn't even seem to be a documentation page for all Scala 3 compiler options.)

that would be correct because the page you linked was written for the scala 2 compiler and not updated yet for scala 3

@bishabosha
Copy link
Member

bishabosha commented Dec 24, 2023

if we don't want to completely restructure the page, we can either make a separate scala 3 page, a scala 3 section on the same page, or we could add tags to each option to say the supported versions, or we replace with a table, but that may take more effort

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

No branches or pull requests

2 participants