-
Notifications
You must be signed in to change notification settings - Fork 14
Document features conditional on source and target versions #470
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
Comments
this is for 2.12? where would such documentation go? |
Related sbt/sbt#3123 If there were command line entry point that lists out list of flags, -Xsource manuals, latest book recommendations by Scala team, I'd love to surface them as an sbt task |
we now have a place to put this stuff: scala/docs.scala-lang#1058 |
nowadays, this would be about |
I don't know about documenting, but I meant to add 3 to the migration guide. I'm pretty sure it's underused, because otherwise people would be complaining about it. It has, for instance, "infix on the next line." I wish 2.13 were compiled with it. |
and nowadays it's |
It would also be good to document what effect For the most part it just sets the bytecode version number, but I know of one PR where it actually affects code generation, namely: scala/scala#9556 ("Use StringConcatFactory for string concatenation on JDK 9+") I didn't find anything else like that when prepping through the compiler code, but it's conceivable I missed something. |
The pressure to document |
The PR with Lukas's definitive tweaks: Now the one that needs documenting is but that doesn't change behavior per se; |
-Xsource:2.13
@elidable
. (SI-10068 Only permit elidable methods scala#5539)The text was updated successfully, but these errors were encountered: