You can always download multiple versions of Scala and experiment with them. I use Linux and my tips will be applicable to Mac OS users, too. Windows users can also do a similar setup. Here are the steps:
- Install Scala under /opt/scala-{version}/ or any other path you prefer.
- Create a symlink using this command: sudo ln -s /opt/scala-{version} scala-current. This can make switching versions much easier, if you decide to experiment.
- Add the path to the Scala bin folder to your .bashrc (or equivalent) file using the following lines:
- export SCALA_HOME=/opt/scala-current
- export PATH=$PATH:$SCALA_HOME/bin
Now if you had defined a symlink and you decide to install another version of Scala, you could simply ...