Ok wow I really like this, I hope it drives consensus on how to get started with Scala. Going to try it out next weekend if I can.
this post was submitted on 20 Jun 2023
12 points (100.0% liked)
Scala
336 readers
1 users here now
founded 1 year ago
MODERATORS
I'm sure I missed it, but is there any backwards-compatibility offered by scala-cli and the scala-toolkit?
If everyone ends-up using it via scala-cli --toolkit latest
, I wonder what would happen if one day one library gets replaced by another or removed. Are we going to have a message like "error: some.library.name has been superseded by the.new.alternative", or will it just result in an import error and a deceived user?
From the example it looks like your code imports the lib by its name, the toolkit doesn’t hide or rename the underlying lib, so if one is removed for some reason it will fail on that dependency and be clear that you have to get that one back.