-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
Description
it would cover topics such as:
- how to call Java libraries from Scala
- how to write Scala code that is easily callable from Java
JavaConverters- hey, scala-java8-compat exists, consider using it!
- boxing
- generics
- Scala's type system allows type parameters to be primitive types, Java's doesn't
- use-site variance (Java) vs. declaration-site variance (Scala)
- default parameters
and probably a lot of other stuff. there is a Java interop chapter in the Odersky/Venners/Spoon book that we could mine for ideas.
a first draft of such a guide wouldn't need to be anywhere near complete, it would be fine just to get something in place and then it could expand over time from there
there are a ton of Stack Overflow answers that would be useful here, it would be fine to sometimes just link to those, doing that can be a real time-saver when writing docs, even if ideally the SO links might eventually get replaced with our own text
raboof, FlakM and GrafDiffusore