After the recent release of Scala 3.1.0, we can see that libraries should be really cautious with updating the compiler version, as it forces a bump on every user of that library. Code compiled with 3.0 is not able to read dependencies compiled with 3.1. Right now, that means that code compiled with Scala 3.1 can depend on libraries published with 3.0 without any problems. Scala 3 has excellent backward compatibility guarantees between the minor versions. 3.1.2-RC1 contains further fixes, but most importantly it is our first step in improving forward compatibility in Scala. 3.1.2-RC1 and forward compatibility improvementsĪlongside 3.1.1 we have released the first RC version of the next patch release of the compiler. Scaladoc documentation has an improved UI.įor a comprehensive list of fixes, take a look at the full changelog on GitHub.Dual Scala 2/3 macros can be now declared in non-experimental scopes ( PR #13795).It is now safe to derive a type class for a type dependency that was compiled with a pre-3.1.0 compiler. Mirrors can be correctly summoned for hierarchical sum types compiled by Scala 3.0.x. To learn more see PR #13662 and related issue. Def example ( a : A )( using A <:< B ) = val b : B = a ?
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |