« first day (3245 days earlier)      last day (1717 days later) » 

10:00 PM
array|HasGetArrayInterface something like that
and okay, maybe 'array' wasn't the best choice of type to represent an individual scalar :P but I'm sure you get my point
 
I'll bet you'll use it more for (and from) libraries....every call in Imagick that accepts a color accepts either a string (like RGB(255, 128, 0)) or an ImagickPixel object.
 
That's an excellent example IMO.
 
10:21 PM
Wild idea, what about hosting most of PHP's project on GitLab.com ?
At least we don't need to care as much about infra
 
I guess I would ask what is the infrastructure?
 
A bunch of servers I would suppose? IIRC DigitalOcean provides some of them?
 
@Girgias The stuff with karma might be difficult. And I think some people have very strong views against putting the git repo on someone else's infrastructure...but otherwise, go for it....
 
I mean we don't need to move everything
 
function log_first_step() {
    $bar = 5;
    $class = new class {
        public function log_second_step($msg)
        {
            // Is there a way to access $bar in here, other than
            // using a class constructor?
            echo $msg;
        }
    };

    return $class;
}
 
10:27 PM
But indeed the karma bit will be problematic :-/
 
^ I 'effing hate that one @Danack.
I usually just go $class->bar = $bar; after
But it's fugly
 
@Danack :')
 
@JoeWatkins wiki.php.net/rfc/lexical-anon - I'm guessing maybe there was a stumbling block for that?
Google snippeting PHP RFCs is new to me:
 
Also does anyone know how I can setup gmail such that I can send emails from my php.net address?
 
10:35 PM
 
Oh that's interesting
 
I see your anonymous classes, and raise you anonymous namespaces.
Well chaps, I need to get a cup of tea then grind code for a few hours. Today has been a very good day for PHP as a whole.
 

« first day (3245 days earlier)      last day (1717 days later) »