Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I can't explain the downvotes other than that in OO method chaining does not bind you to a specific type. I don't really know Python but in Ruby, for example, you can do `"string".split.map { |s| s.upcase }`. IE, a method doesn't have to return a reference to `self`, so I'm not really seeing your argument other than choosing to use the style of only chaining when the object types match, which you can still do with pipes if you want.

The only ML language I have any experience with is OCaml which is statically typed and has pipes.

EDIT: re-reading your last comment it looks like I totally ignored the first part of what you said, but I guess I'm confused. This thread is also probably nested enough, lol.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: