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

Mutability #27

Open
paulyoung opened this issue Mar 3, 2015 · 2 comments
Open

Mutability #27

paulyoung opened this issue Mar 3, 2015 · 2 comments
Labels

Comments

@paulyoung
Copy link
Contributor

The data parameter of promises is the only mutable object in decision trees.

How are other objects made immutable? e.g. choice

@paulyoung
Copy link
Contributor Author

Items are immutable, meaning they will always remain in the Choice.attributes.items object

@cbchouinard
Copy link
Contributor

I'll clarify that point in the doc, in fact even items are not immutable, its the collection of items that is. eating an items add the item to the eatenItems collection and when you get an item, the list of available items is filtered out from the eatenItems collection.

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

No branches or pull requests

2 participants