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

Encapsulate definitions #537

Merged
merged 7 commits into from
Nov 6, 2016
Merged

Encapsulate definitions #537

merged 7 commits into from
Nov 6, 2016

Conversation

weppos
Copy link
Owner

@weppos weppos commented Nov 6, 2016

Being able to access the entire definition Hash is something that is
not going to be possible anymore.

The library should be able to change the definitions without being
afraid of breaking external implementations. Developers should not
change the definitions directly, instead they should use #define to
append new definitions. That also means that the definition order
should not be relevant (GH-536).

This patch changes the internal representation of the definitions, and
hides them from the outside. It's not possible to access the definition
list only using #definitions and passing the type. Different types may
have different representations in the future.

The returned list is always a clone, so that the internal definition
list is not affected.

Also closes GH-536

Being able to access the entire definition Hash is something that is
not going to be possible anymore.

The library should be able to change the definitions without being
afraid of breaking external implementations. Developers should not
change the definitions directly, instead they should use #define to
append new definitions. That also means that the definition order
should not be relevant (GH-536).

This patch changes the internal representation of the definitions, and
hides them from the outside. It's not possible to access the definition
list only using #definitions and passing the type. Different types may
have different representations in the future.

The returned list is always a clone, so that the internal definition
list is not affected.
Instead of scanning each definition and using regular expressions,
perform specific lookups for the parts that represent the domain.

It also closes GH-536
@weppos weppos self-assigned this Nov 6, 2016
@weppos weppos merged commit 91cbaed into master Nov 6, 2016
@weppos weppos deleted the encapsulate-definitions branch November 6, 2016 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Definition lookup should be independent on the order of the definitions
1 participant