Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74633 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86744 invoked from network); 29 May 2014 15:30:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 May 2014 15:30:25 -0000 Received: from [127.0.0.1] ([127.0.0.1:25974]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id B6/1D-07154-09257835 for ; Thu, 29 May 2014 11:30:25 -0400 Authentication-Results: pb1.pair.com header.from=rl@nbsp.io; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rl@nbsp.io; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nbsp.io from 209.85.213.180 cause and error) X-PHP-List-Original-Sender: rl@nbsp.io X-Host-Fingerprint: 209.85.213.180 mail-ig0-f180.google.com Received: from [209.85.213.180] ([209.85.213.180:41435] helo=mail-ig0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B7/8C-07154-DA057835 for ; Thu, 29 May 2014 11:22:22 -0400 Received: by mail-ig0-f180.google.com with SMTP id c1so487722igq.13 for ; Thu, 29 May 2014 08:22:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=Sp/ADcB32EGj+WjGWbI6N/90RHdOIzPADPcZ7ACzRb0=; b=XwK8G+ba8+FRqYxWzH7/t6QVVfZvWoeK2nyZly0kQzz+aYqFbT5mMUyPbUbUK8lc9i lrTe3JHrogZOdYLOcmsK1H0ucvzTlPTO+OTdslqQ/k39MNfrjOP/xDsI6OG0MTSLEJez SJRsjskL7Rxv9dSB/419dkRxbQtaqyV6bm2vKgacOeHV7k1THvIvv5fg3KPhen3z6rBh JkkLTMdDR3/bnIwmMP4YJLHC5XNrcNxCC4oZ+wMdQPP7F73UtxNGjugaxJOTtAC2pOl4 ArOHzAXdA5La/hX0riZWqGQbFHiDb2oaf/o46UPwHxxjX5S72goGRLvkY6jGg+wh8+t3 dIhQ== X-Gm-Message-State: ALoCoQmQ4nm7xfdU/KF+y0nwzEXm6r9GNE/mhXHNxo1p1dHOBmJOihIi+yoskWHy+7QVEgO52kLG MIME-Version: 1.0 X-Received: by 10.50.153.11 with SMTP id vc11mr11280332igb.24.1401376939118; Thu, 29 May 2014 08:22:19 -0700 (PDT) Received: by 10.50.231.180 with HTTP; Thu, 29 May 2014 08:22:19 -0700 (PDT) X-Originating-IP: [84.232.233.75] In-Reply-To: References: <1561D0FE-4CE4-4391-9991-A9CE97A0D021@ajf.me> Date: Thu, 29 May 2014 18:22:19 +0300 Message-ID: To: PHP Content-Type: multipart/alternative; boundary=089e013d0beaa7434604fa8b7ea3 Subject: Re: [PHP-DEV] PHP new proposal From: rl@nbsp.io (Rowan Lewis) --089e013d0beaa7434604fa8b7ea3 Content-Type: text/plain; charset=UTF-8 I don't think there's an RFC, but Nikita wrote at length about it and created a PHP extension to allow for users to define their own methods on primitive types: http://nikic.github.io/2014/03/14/Methods-on-primitive-types-in-PHP.html This work was then used by Ross Riley who has attempted to define what these methods should be: https://github.com/rossriley/php-scalar-objects Hope this helps. On Thu, May 29, 2014 at 8:45 AM, Kris Craig wrote: > > > > > > A similar but different idea has already been proposed, namely methods on > > scalars and arrays, which is Nikita Popov's (aka nikic) idea. > > > > Do you know if there's an RFC for that one? I vaguely remember reading > something about it but I didn't see it on a quick scan of the RFC page. > > --Kris > --089e013d0beaa7434604fa8b7ea3--