Hi!

> "|>" is just a building block for simpler coding. It could be used badly, but
> it helps a lot. Procedural code could be much simpler and readable with "|>".

I don't see how it helps anything. It just replaces clear variable names
with cryptic sequences of characters with no intuitive meaning and magic
semantics invented solely to save a few keystrokes. Moreover, it would
only in one sole use case where functions always return a value that is
immediately passed to the next one and is sole argument for it, and
never produce errors or require any logic beyond calling them in a
sequence on one value.

> "|>" version is much easier to read and write.

Quite the opposite. It has completely unobvious syntax (what is $$? What
is the value of $$? how I see this value if I need to debug this code?)
and does not allow to do anything but making code more cryptic.
-- 
Stas Malyshev
smalys...@gmail.com

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to