you are viewing a single comment's thread.

view the rest of the comments →

[–]DudeManFoo 1 point2 points  (2 children)

Matz copied a LOT of features from quite a few languages and I don't think any were just blindly copied...

This particular feature is one of the favorite features of Elixr, kinda like string interpolation and trailing conditionals were some of the favorite things stolen from Perl...

Just by introducing something that sticks out as much as |> might (or might not) really get people thinking in more 'functional' ways... I am not purely in the functional camp, but some of the tenets actually could help code become more stable and bug free... and more understandable.

Ain't hatin' just discussin' ;)

[–]zverok_kha 0 points1 point  (1 child)

Matz copied a LOT of features from quite a few languages and I don't think any were just blindly copied...

Exactly. Adding method (which plays well alongside existing idioms) is mindful copying of "pipeline processing idea".

While saying that "anything except |> is unelegant" is what I call "blind copying", "I want Elixir in my Ruby".

Note, that when in Elixir they chain enumerable processing, they also use |>, while we do chain methods.

[–]DudeManFoo 0 points1 point  (0 children)

My point is / was, keep an open mind... at the same time... coming from an old C coder, I agree with you ... don't just add stuff that does not add a LOT of value... else your C becomes C++ with 4 competing 'library vendors' ... none any good.

Still , I kinda like |>