functional programming - Immutablejs within plain objects - Monads -
the redux best practices says not mix plain javascript object immutablejs objects. i'm trying hand @ functional programming , seems monads require computations/values stored inside object, or container of sorts. afaik immutablejs maps can't store methods. there issues using fp libraries folktale? haven't noticed noticeable issues basic todo app (which can try @ moment), i'm hoping clarification on immutablejs best practices, fp leaning.
ok, feel fool. read linked article again , saw it's not performance, avoid confusion when data passed immutable or pojo. here's relevant section article
in fact, might tempted put normal javascript object inside immutable map. don't this. mixing immutable , mutable state in same object reap confusion.
http://jlongster.com/using-immutable-data-structures-in-javascript
Comments
Post a Comment