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

See if a Datapackage object is non mutable or not #29

Open
nikolaj-funartech opened this issue Aug 19, 2023 · 1 comment
Open

See if a Datapackage object is non mutable or not #29

nikolaj-funartech opened this issue Aug 19, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@nikolaj-funartech
Copy link
Collaborator

For the moment, Datapackage objects are supposed to be non mutable. In that case, we should force the finalization of such object and test if the object has been finalized before any operation can be applied to it.

If a Datapackage object is mutable, then introduce such mechanism.

@nikolaj-funartech nikolaj-funartech added enhancement New feature or request help wanted Extra attention is needed labels Aug 19, 2023
@nikolaj-funartech nikolaj-funartech self-assigned this Aug 19, 2023
@nikolaj-funartech
Copy link
Collaborator Author

The main issue is that we use Datapackage objects and threat them by default as mutable. If we want to introduce the notion of immutability, we also must introduce ways to create them as immutable. This is a big change in the code (but not for the users of the libraries). Is it worth it? @cmutel : What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant