Welcome back! Scala is a very powerful language used for tons of different things and we just got the next iteration of this language, Scala 3! I will be highlighting some of my favorite updates with this language, if you want to read their entire change-log check out their page down below:
Scala 3 is here!🎉🎉🎉
After 8 years of work, 28,000 commits, 7,400 pull requests, 4,100 closed issues - Scala 3 is finally out. Since the…
Luckily, Scala has given us a migration guide from Scala 2 to Scala 3 as well, if you want to begin migrating your code please use their guide below:
Scala 3 is a game changer in terms of compatibility in the Scala ecosystem that will greatly improve the day-to-day…
Let’s get started!
One of the first things the Scala team mentions are the new quite syntax within the language, there are also new optional braces, making it indentation sensitive, they also mention implicit(s) have been heavily revised:
We also have a bit of an update with enumerations (enums), they have now been redesigned to be within the case classes:
We also now have type lambdas within Scala 3, before in Scala 2 it was a first-class feature, now it is built into Scala 3!
There have also been a few experimental features that were added in Scala 2 that are now native features with Scala 3! These specific features are circled around meta programming, the new inline feature allows methods and values to be reduced at compile time!
There are also now quoted code blocks, this will allow us to construct code a bit easier within our environment:
There you have it! As I mentioned before, I would highly suggest checking out their website for all of the changes, if you have any questions or any other additions please let me know!
if you have any suggestions, thoughts or just want to connect, feel free to contact / follow me on Twitter! Also, below is a link to some of my favorite resources for learning programming, Python, R, Data Science, etc.
Here are some of my favorite courses, books and so much more. Most of these are affiliate links which help me create…
Thanks so much for reading!