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

Completely drop ALL added methods to the base class #331

Open
pauxus opened this issue Oct 27, 2024 · 0 comments
Open

Completely drop ALL added methods to the base class #331

pauxus opened this issue Oct 27, 2024 · 0 comments

Comments

@pauxus
Copy link
Member

pauxus commented Oct 27, 2024

I.e. drop all apply/withTemplate etc methods as well a the access to the Creator as well and completely encapsulate using a single (or multiple) Wrapper class and its static methods.

i.e.

  • Klum.Create(MyClass) instead of MyClass.Create
  • Klum.Apply(myinstance) {} instead of myInstance.apply {}

This is already adressed partially in various other tickets, the main part is to drop the Creator field as well.

Basic Problem: There might be no easy way to make Klum.Create() return an IDE safe version of the factory.

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