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

mutator methods #26

Open
dvanhorn opened this issue Jan 17, 2013 · 0 comments
Open

mutator methods #26

dvanhorn opened this issue Jan 17, 2013 · 0 comments
Labels

Comments

@dvanhorn
Copy link
Owner

We've moved away from the (field f) form of referencing fields and instead have used automatically generated accessor methods: (send this f).

We should do the same for (set-field! f x). I propose we generate mutator methods (send this f! x).

There is some potential for this going wrong, eg if you have a class with fields f and f!, then method f! is ambiguous, but so long as this is a syntax error, it seems fine.

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

1 participant