It sounds to me that weak/soft references are only really half a
solution to a problem.
As Chris Stockton points out http://news.php.net/php.internals/54391
there is always going to be additional code that has to check to see if
the reference is still valid.
If the only concern here is runni
is enough functionality in
PHP today to make the kind of program you're after.
On 05/08/2011 09:20, Jezz Goodwin wrote:
This looks similar to Twisted in Python
(http://twistedmatrix.com/trac/) and NodeJS (http://nodejs.org/) which
are both non-blocking event driven IO engines.
The actual event
This looks similar to Twisted in Python (http://twistedmatrix.com/trac/)
and NodeJS (http://nodejs.org/) which are both non-blocking event driven
IO engines.
The actual event driven side of things could be written today in PHP.
There's nothing stopping you from writing an event call stack that
ldn't.
On 04/08/2011 21:53, Johannes Schlüter wrote:
On Thu, 2011-08-04 at 21:17 +0100, Jezz Goodwin wrote:
:($x)=>$x+1;
":(" looks quite sad. I also assume you know that : is a division. In a
more complex situation this might, on first sight, be mistaken as a
division by $x or
oned way.
:($x){
$x = $x + 1;
return $x;
}
Jérémy Poulain
2011/8/4 Matthew Weier O'Phinney
On 2011-08-04, Jezz Goodwin wrote:
--060805070009050707030403
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hello PHP Internals,
In terms of thinking about typos, I'm sure there would be a solution to
making pretty robust short hand lambdas.
I think a more valid discussion would be whether PHP should have a short
hand lamda notation. A lot of talk on here is against there even being a
short-hand version, whatever syntax
On 04/08/2011 21:00, Matthew Weier O'Phinney wrote:
On 2011-08-04, Jezz Goodwin wrote:
--060805070009050707030403
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hello PHP Internals,
This is my first message to the list. I
$x)=>( :($y)use($x)=>$x+$y );
Much better.
Regardless of all of this, I actually don't find myself using too many
inline functions. (Not to the extent I was writing 'array' all over my
code anyway) - So I can't argue srongly about function shortening making
it's way in to PHP.
Perhaps once we're all using inline functions on every other line of our
code there'll be a bigger demand for it!
Best regards,
Jezz Goodwin