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
 

Could be very helpful at demonstrating how scala is a superpower you don’t have to spend years of ninja training to begin to access.

top 3 comments
sorted by: hot top controversial new old
[–] HiddenTower 1 points 1 year ago

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.

[–] [email protected] 1 points 1 year ago (1 children)

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?

[–] HiddenTower 1 points 1 year ago

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.