issa-tseng / janus

the two-faced application library-framework.
http://janusjs.org
37 stars 7 forks source link

Immutable model properties that may only be set once #76

Open issa-tseng opened 7 years ago

issa-tseng commented 7 years ago

Initially, just reject further changes. Often, application code (or thought processes thereof) can be vastly simplified with immutability assumptions, even with Janus's automatic handling. This mechanism gives peace of mind that such assumptions will be enforced down the line.