Scala 3 just got released! Heres whats new!

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:

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:

Let’s get started!

Syntax Updates

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!

As Always

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.

Thanks so much for reading!

Data Scientist / Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store