Kinda strange that they have both readable and unreadable listed as both pro and con...
Kinda strange that they have both readable and unreadable listed as both pro and con...
I think it would have been a nice addition...
I found array_map, array_filter, array_key_exists, array_this, array_that painful to write, but never felt that I was gaining any sort of readability for it.
I mean it as per the definition on wikipedia:
Syntactic sugar is a computer science term that refers to syntax within a programming language that is designed to make things easier to read or to express, while alternative ways of expressing them exist.Concentrations of people who dislike all syntax sugar can be found in the Forth community and concatenative languages in general, Lisp, and to a lesser extent, in the Haskell community. People who think syntax sugar is the answer to everything can be found in the Perl 5 community, and Perl 6 is arguably syntax sugar spun into cotton candy, hardened, and used to build a glorious gossamer castle in the sky, which they are currently working on landing. I have taken this metaphor too far.
$newArray = $array->map("function_name");
Not gonna happen, but would be nice. Any extensions doing this?