Skip to content

Pipeline operator 目前有啥进展吗? #1

Answered by hax
xiaoxiangmoe asked this question in Q&A
Discussion options

You must be logged in to vote

最主要的问题,要再推进之前得决定到底走什么方向。因为pipeline有几个并行的提案,目前还留存的提案是 F# style (再加上后续 partial application 提案)和 topic style(smart style)。但其实 Elixir style 或者原本 bind operator 的形式也各有千秋。

我个人感觉,强行要在这几个形式中选择,比较大可能性是上 F# style,但结果也不见得好。我在准备一个新提案 extensions(形式上比较接近原本的 bind operator),基于这个提案,pipe(和 partial application)的需求可以通过 userland 库来解决(后续也可以对库标准化)。见 #3

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1 on December 30, 2020 04:49.