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

Add @static3 #79

Merged
merged 2 commits into from
Dec 23, 2023
Merged

Add @static3 #79

merged 2 commits into from
Dec 23, 2023

Conversation

armanbilge
Copy link
Member

Similar to #72, this lets us use another fancy Scala 3 optimization while still cross-compiling for Scala 2.

@satorg satorg self-requested a review December 23, 2023 20:25
Copy link
Contributor

@satorg satorg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you!

@armanbilge armanbilge merged commit a0bd981 into typelevel:main Dec 23, 2023
5 checks passed
Comment on lines +19 to +21
object CustomStaticHelper {
final val isScala3 = true
}
Copy link
Contributor

@satorg satorg Dec 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@armanbilge regarding this object. It looks good for this PR, but as I can see there are two other objects around - CustomTargetNameHelper and CustomThreadUnsafeHelper that presumably do exactly the same thing. I wonder if it makes sense (in another PR of course) to replace these three separate objects with a single unified one. Like ScalacVersionHelper or something like this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah we should definitely do that. Every time I open one of these PRs I want to do it but I get lazy and succumb to copy-paste. 😅

@armanbilge armanbilge mentioned this pull request Dec 24, 2023
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

Successfully merging this pull request may close these issues.

2 participants