Atoms #3

Open
opened 2018-02-12 09:43:53 +00:00 by moonglum · 1 comment
moonglum commented 2018-02-12 09:43:53 +00:00 (Migrated from github.com)

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.

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.
moonglum commented 2019-12-19 10:49:56 +00:00 (Migrated from github.com)

A simpler name would be "reference"

A simpler name would be "reference"
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: moonglum/halunke#3
There is no content yet.