Re: [Pharo-dev] Pipe operator

2014-06-09 Thread Frank Shearar
On 8 June 2014 19:46, Camille Teruel camille.ter...@gmail.com wrote: On 8 juin 2014, at 19:20, Garth Holland steve9571...@hotmail.com wrote: The pipe operator appears in many languages (F#, Haskell, Elixir, Clojure (threading macro)). It's an elegant way of chaining method/function calls in

Re: [Pharo-dev] Pipe operator

2014-06-08 Thread stepharo
if you are talking about the extension made by nicolas cellier: probably. Stef On 8/6/14 00:10, S. Garth Holland wrote: Will Pharo ever get the pipe opeator? http://www.reddit.com/r/smalltalk/comments/27k27b/chaining_messages/ /Garth

Re: [Pharo-dev] Pipe operator

2014-06-08 Thread Nicolas Cellier
2014-06-08 12:12 GMT+02:00 Norbert Hartl norb...@hartl.name: What is that extension? Norbert I'm curious too :) I recently proposed to enable caret as a binary selector, maybe there's been a confusion... I remember a discussion about using ;; as pipe operator (it's more syntax sugar than

Re: [Pharo-dev] Pipe operator

2014-06-08 Thread Garth Holland
The pipe operator appears in many languages (F#, Haskell, Elixir, Clojure (threading macro)). It's an elegant way of chaining method/function calls in the presence of additional parameters. The reddit example could be written using a pipe operator | #('apple' 'peach' 'banana') |

Re: [Pharo-dev] Pipe operator

2014-06-08 Thread Ben Coman
Garth Holland wrote: The pipe operator appears in many languages (F#, Haskell, Elixir, Clojure (threading macro)). It's an elegant way of chaining method/function calls in the presence of additional parameters. The reddit example could be written using a pipe operator | #('apple' 'peach'

Re: [Pharo-dev] Pipe operator

2014-06-08 Thread Frank Shearar
Vassili Bykov wrote about the pipe operator in Smalltalk back in 2007: http://blog.3plus4.org/2007/08/30/message-chains/ frank On 8 June 2014 18:20, Garth Holland steve9571...@hotmail.com wrote: The pipe operator appears in many languages (F#, Haskell, Elixir, Clojure (threading macro)). It's

Re: [Pharo-dev] Pipe operator

2014-06-08 Thread Attila Magyar
Hi, I wrote that reddit post. I was curious if anyone came up with something to this. Since then I discovered that Bert Freudenberg created an asPipe method before, that works exactly the same way as mine. And probably asPipe is a better name than chain. The idea of the pipe operator is

Re: [Pharo-dev] Pipe operator

2014-06-08 Thread Camille Teruel
On 8 juin 2014, at 19:20, Garth Holland steve9571...@hotmail.com wrote: The pipe operator appears in many languages (F#, Haskell, Elixir, Clojure (threading macro)). It's an elegant way of chaining method/function calls in the presence of additional parameters. The reddit example could be

Re: [Pharo-dev] Pipe operator

2014-06-08 Thread Attila Magyar
Yes, AFIK, the Java 8 stream API works similarly. The query is called stream(), the endQuery is called collect(Collectors.toList()) -- View this message in context: http://forum.world.st/Pipe-operator-tp4762106p4762209.html Sent from the Pharo Smalltalk Developers mailing list archive at

Re: [Pharo-dev] Pipe operator

2014-06-08 Thread stepharo
Norbert I'm curious too :) I recently proposed to enable caret as a binary selector, maybe there's been a confusion... :) Yes my brain is overloaded in this moment. I'm doing far too many things at the same time. Not good. I remember a discussion about using ;; as pipe operator

Re: [Pharo-dev] Pipe operator

2014-06-08 Thread Denis Kudriashov
XStream I think is exactly about it 2014-06-08 22:46 GMT+04:00 Camille Teruel camille.ter...@gmail.com: On 8 juin 2014, at 19:20, Garth Holland steve9571...@hotmail.com wrote: The pipe operator appears in many languages (F#, Haskell, Elixir, Clojure (threading macro)). It's an elegant

Re: [Pharo-dev] Pipe operator

2014-06-08 Thread Nicolas Cellier
2014-06-08 20:46 GMT+02:00 Camille Teruel camille.ter...@gmail.com: On 8 juin 2014, at 19:20, Garth Holland steve9571...@hotmail.com wrote: The pipe operator appears in many languages (F#, Haskell, Elixir, Clojure (threading macro)). It's an elegant way of chaining method/function calls

Re: [Pharo-dev] Pipe operator

2014-06-08 Thread Randal L. Schwartz
Garth == Garth Holland steve9571...@hotmail.com writes: Garth The pipe operator appears in many languages (F#, Haskell, Elixir, Clojure Garth (threading macro)). And Perl6. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com

[Pharo-dev] Pipe operator

2014-06-07 Thread S. Garth Holland
Will Pharo ever get the pipe opeator? http://www.reddit.com/r/smalltalk/comments/27k27b/chaining_messages/ /Garth

Re: [Pharo-dev] Pipe operator

2014-06-07 Thread Ben Coman
S. Garth Holland wrote: Will Pharo ever get the pipe opeator? http://www.reddit.com/r/smalltalk/comments/27k27b/chaining_messages/ /Garth I don't follow. That word 'pipe' doesn't appear on that page. cheers -ben