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

Intelligently handle case class's synthetic object definitions #6

Open
matanox opened this issue Aug 25, 2015 · 0 comments
Open

Intelligently handle case class's synthetic object definitions #6

matanox opened this issue Aug 25, 2015 · 0 comments

Comments

@matanox
Copy link
Member

matanox commented Aug 25, 2015

A synthetic object bearing the name of its case class, is defined by the compiler for every case class. This may be confusing for the user, especially when an object bearing the same name is explicitly defined in the code (in such case, there would be two objects with the same name as the case class).

The two objects may be connected by a method named readResolve which if I recall correctly, is some kind of Java internal-ish method.

It seems this all should be intelligently collapsed into fewer parts, entertaining a facade hiding these internals from the user, without the loss of real information such as usage links (e.g. in case any of the collapsed objects are used from elsewhere, this hopefully can be represented by collapsing the connections into the simpler facade, in a manner that maintains "correctness").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant