feviskus
Google's SQL dialect added a `|>` pipe operator
From here: Work with pipe query syntax | BigQuery | Google Cloud Documentation
HN: https://news.ycombinator.com/item?id=42998904
Example usage:
-- Filter items with no sales.
FROM Produce
|> WHERE sales > 0;
-- Compute total sales by item.
FROM Produce
|> WHERE sales > 0
|> AGGREGATE SUM(sales) AS total_sales, COUNT(*) AS num_sales
GROUP BY item;
Thought it could be worth mentioning, as it shows how Elixir proceeds to influence other languages.
Most Liked
cmo
codeanpeace
Really enjoyed that article on archeological semiotics and how it dropped a bunch of lore i.e. the original email thread. Well worth the read and really humanizes how the pipeline symbol came to be!
To summarize, |> was carried over from Isabelle/ML…
Now if we continue digging, The Early History of F#, also written by Don Syme aka the creator of F# unsurprisingly mentions the “obvious semiotic inspiration from UNIX pipes.” So this naturally begs the question of how the UNIX pipe operator came to be? Well here’s another fun tidbit of archeological semiotics …
Though Mahoney’s interview suggests that the original symbol for pipes was “> ,” in the 1994 book, “A Quarter Century of Unix,” McIlroy remembers when Thompson decided the symbol for pipes should instead be “|.” Thompson made the change “for a talk in London, because he couldn’t bear to reveal my ugly syntax.”
source: Pipe: How the System Call That Ties Unix Together Came About
So perhaps it went from >
|
|> ![]()
sodapopcan
To be “that guy,” Elixir took from |> from F#. Though perhaps someone will come along and tell me where F# took it from ![]()








