coobjc icon indicating copy to clipboard operation
coobjc copied to clipboard

Promise能否增加基于点(.)语法的链式写法支持?用 [] 来写链式写法步骤多了之后超级别扭啊

Open xpsuper opened this issue 6 years ago • 3 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

xpsuper avatar Apr 22 '19 08:04 xpsuper

如果改为 . 语法支持的话,就会不兼容现在的api了

NianJi avatar Apr 23 '19 02:04 NianJi

感觉并不需要修改吧,只是在现有的API之上增加语法糖的包装吧

xpsuper avatar Apr 23 '19 02:04 xpsuper

一般oc里面链式调用,需要 then 返回一个block, 而现在返回的是 Promise对象

NianJi avatar Apr 26 '19 09:04 NianJi