Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xpsuper opened this issue Apr 22, 2019 · 3 comments

Comments

@xpsuper
Copy link

xpsuper commented Apr 22, 2019

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.

@NianJi
Copy link
Collaborator

NianJi commented Apr 23, 2019

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

@xpsuper
Copy link
Author

xpsuper commented Apr 23, 2019

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

@NianJi
Copy link
Collaborator

NianJi commented Apr 26, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants