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

Atoms #3

moonglum opened this Issue Feb 12, 2018 · 0 comments


1 participant

moonglum commented Feb 12, 2018

Currently, you can't reassign references. The idea is to have reassignable references inspired by Clojure's Atoms:

(@number = 1)
(@number = 2)

(@list = [1 2 3])
(@list = (@list push 4))

This doesn't change that all objects are immutable. Its just the references that are mutable. Expressed differently: Clojure separates identity from data and both from behavior. Halunke separates identity from data and behavior, but keeps data and behavior together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment