iThink icon indicating copy to clipboard operation
iThink copied to clipboard

iflux2 - Actor

Open hufeng opened this issue 8 years ago • 2 comments

hufeng avatar Sep 06 '16 11:09 hufeng

master hu, actor每个方法里面都有state,每个方法都要写一遍 xxx(state, param) {} state是获取当前actor的值,可以类似这样xxx(param){this.state.set('pathxxx', param)}

zhangjin-007 avatar Nov 03 '16 08:11 zhangjin-007

@javascala 不行,因为actor是没有状态的,没有this.state

actor表达的概念是对函数的处理,写法上面很oop 实际上是fp的计算。

hufeng avatar Nov 09 '16 03:11 hufeng