note 95739 deleted from function.str-pad by danbrown
| From: | danbrown@php.net | Date: | Tue, 19 Jan 2010 16:12:44 +0000 |
| Subject: | note 95739 deleted from function.str-pad by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-165111@lists.php.net to get a copy of this message | ||
Note Submitter: php at geoff dot dj
----
Shelby writes:
"Are more concise, semantically coherent, and perhaps also more efficient because do not create
an intermediate discarded string, than the clever..."
Surely this is troll, right?
You've taken a piece of inline code which takes perhaps a couple of seconds to understand the
first time you see it but is from then on completely understandable to anyone who's ever seen
something similar before and you've abstracted it so that _no-one_ except the author knows what
it does without trawling through the code to find the function definition.
Your suggestion that it's more efficient is insane - one temporary string as opposed to two or
three function calls?