Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider supporting Scala 2.13 #61

Closed
altrack opened this issue Dec 28, 2023 · 4 comments
Closed

Consider supporting Scala 2.13 #61

altrack opened this issue Dec 28, 2023 · 4 comments

Comments

@altrack
Copy link

altrack commented Dec 28, 2023

Hey SoftwareMill,

Since the introduction of project Loom there is a lot of interest in going back to direct style code from monads. Yet, most of the industry is still using Scala 2. Structured concurrency and scoped values will be probably GA in one of the next JVM versions, much sooner than the industry will move to Scala 3 (if at all).
Please consider adding Scala 2.13 support.

Thanks.

@lbialy
Copy link
Contributor

lbialy commented Jun 30, 2024

Scala 2.13 support can't be easily added because context functions are a Scala 3 feature. Closest thing would be:

supervised { implicit Ox =>
  fork {
    
  }
}

Btw why would you want to use a new library with new jdk (21+) with an older version of the language? Are you stuck on 2.13 for some reason?

@altrack
Copy link
Author

altrack commented Jul 2, 2024

Databricks, Kafka-streams.

@bishabosha
Copy link
Contributor

this also makes it hard to consider any library that uses Ox for scala toolkit - unless we make that Scala 3 only

@adamw
Copy link
Member

adamw commented Jul 9, 2024

Cross compiling would require a lot of effort on our side, as we are using a lot of Scala 3 features in the library. It would also mean that Scala 2 Ox would have worse DX. So we'll keep it on Scala 3 only, leveraging Scala 3 and Java 21 to as much as possible.

@adamw adamw closed this as not planned Won't fix, can't repro, duplicate, stale Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants