https://github.com/influx6/reactive
an combination of FRP principles with mutations
https://github.com/influx6/reactive
Last synced: 7 months ago
JSON representation
an combination of FRP principles with mutations
- Host: GitHub
- URL: https://github.com/influx6/reactive
- Owner: influx6
- Created: 2015-08-21T07:49:15.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-21T07:58:20.000Z (about 10 years ago)
- Last Synced: 2025-01-21T07:08:08.995Z (9 months ago)
- Language: Go
- Size: 113 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
#Reactive
Reactive is based on the idea of FRP[1] and embodies two distinct but useful ideas to create frp style operations in go. Mutations and Function composition with Function reactive designs allow for a vast application and combining these three principles to create reusable,reactive and functional systems##Install
` go get github.com/influx6/reactive `
##Examples
- Mutations
Mutations occur in every system and creating a simple and elegant means of meeting this constraints is key to any functional reactive system. Using the ideals of simplification. Reactive provides mutations on basic types supported by the go language and simple builds larger constructs of structs,maps or arrays based on these types. This simplifies and allows change at a basic, approchable level.
e.g
```go
age := Transform(1)//changes can be listen to with a callback attached
age.Get() => // 1
//change the immutable to get a new one
age.Set(20)
age.Get() => //20
```