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

"Alias" and "Envelope" modes #212

Open
skapral opened this issue Oct 5, 2018 · 0 comments
Open

"Alias" and "Envelope" modes #212

skapral opened this issue Oct 5, 2018 · 0 comments

Comments

@skapral
Copy link
Member

skapral commented Oct 5, 2018

After discussion with @victornoel about envelopes here, I decided to reconsider the rule about classes left non-final and loose it a bit. Two ways (Alias and Envelope) are equally applicable for Elegant design, so the task is to introduce a configurable option for Atomizer, which can have one of two values:

  • Alias - the current mode: all final classes are discarded
  • Envelope - all classes are enforced to be final, unless a set of classes which are designed as envelopes. For them, the "Alias" set of rules are applied (classes non-final, methods final)

The Envelope mode also may come in handy for interoperability with envelope-designed code.

@skapral skapral changed the title " "Alias" and "Envelope" modes Oct 5, 2018
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