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

For discussion: @inline annotation? #202

Open
Quafadas opened this issue Mar 19, 2024 · 0 comments
Open

For discussion: @inline annotation? #202

Quafadas opened this issue Mar 19, 2024 · 0 comments

Comments

@Quafadas
Copy link

Quafadas commented Mar 19, 2024

Could it make sense, to allow allowing the generated code to have the "inline" modifier on some of the variables?

i.e. allow generating;

case object BuildInfo {
  inline val scalaVersion: String = "2.10.3"
} 

With the downstream usecase being scala 3's https://docs.scala-lang.org/scala3/guides/macros/inline.html#inline-matches?

Disclaimer : I have not thought this through carefully - although I assume "compile" comes after the stage this is run, so it could be possible?

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

1 participant