函数式的三个要素:

    • the combination of pure functions;
    • avoiding shared state, mutable data, and side-effects;
    • the prevalence of declarative approach rather than imperative approach.

    Immutability is the core of functional programming

    函数式如何处理副作用呢,可以使用other,或者maybe,other用于两个可以预知的左,与右。maybe用于一个可以预知的左,和无法预知统一处理的右。相当于加副作用进行包裹,始终操作的是可以确定的 副作用包裹(maybe/other)。

    yirga包的思考:
    prelints: 所有eslint,stylelint,prettier,ts用于编辑器和web hooks,ci等支持,以规范开发及美化结构。
    translate(暂定): 编译ts到js模块,提供webpack配置用于组合,以达到快速编译的目的。
    reaction (暂定):react相关支持,提供webpack配置用于组合。快速编译。
    lessen (暂定):less编译相关,提供webpack快,快速编译。