News for hackers. Stuff that matters.
Re:Composable Pipelines [in Go] Improved by hb42 on Wednesday December 23, 2015 @09:23AM (#10783385)
Sorry for not giving rationals or details.

Catnaroek said it already: without parametric polymorphism you are forced to either: 1) commit to a single type upfront which limit the utility (string in your example I think), 2) use interface{} and suffer the boxing in every circonstances while not having any static type checking.

I actually like your pattern. I think it makes sense to have a process as a pair of input and output streams.

Re:Composable Pipelines [in Go] Improved by samuell on Wednesday December 23, 2015 @11:39AM (#10784105)
Thanks for the reply and kind words! :)

See also answer to Catnaroek above!