请问HN:编程语言中的管道
其实有两个问题。<p>哪些编程语言使用管道操作符?我只知道 shell 脚本和 R 语言使用它。<p>为什么更多的编程语言不使用管道操作符?我写了很多 bash、powershell,最近还在使用 Nushell。我认为将内容通过管道连接起来非常强大。一定有一些原因导致像 Python 等语言没有使用它。
查看原文
Two questions really.<p>What programming languages use the pipe operator? I'm only really aware of shell scripting and R that use it.<p>Why don't more programming languages use the pipe operator? I write a lot of bash, powershell, and recently Nushell. I think piping things together is really powerful. There must be reasons why it's not in languages like python etc.