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
Public API should auto-strip local suffixes from names #5736
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5736?orig=1 |
@paulp said: |
@xeno-by said: |
@paulp said: scala> res0.info.member("field": TermName)
res5: $r.intp.global.Symbol = method field
scala> res0.info.member("field ": TermName)
res6: $r.intp.global.Symbol = variable field |
@xeno-by said: |
@paulp said: |
@xeno-by said: |
@paulp said: |
@paulp said: |
seems unlikely to progress, scala.reflect doesn't change much anymore |
In order to disambiguate getters and underlying fields we mangle the latter by appending LOCAL_SUFFIX_STRING (a single whitespace) to their names. That worked fine before we exposed it to the entire world by introducing macros and runtime reflection. Now it's utterly confusing.
The text was updated successfully, but these errors were encountered: