Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89973 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84974 invoked from network); 3 Jan 2016 04:32:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jan 2016 04:32:11 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.48 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.213.48 mail-vk0-f48.google.com Received: from [209.85.213.48] ([209.85.213.48:35107] helo=mail-vk0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5B/84-33667-944A8865 for ; Sat, 02 Jan 2016 23:32:10 -0500 Received: by mail-vk0-f48.google.com with SMTP id k1so109246432vkb.2 for ; Sat, 02 Jan 2016 20:32:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=bM9p8/QgQfUKeyf9o8QWbr97YdCkUX3beEY20PybgZs=; b=NOJgQH5Nk/7uYpAUXyvOV6U8CGcyuSzMoCmSMZJhDuHEgyrUmU5jvwWn5oUof1ZT2W KK2nUKIY8ym4TFH2PErwEuQjsLv7NGUvfSyOZbxHe9FUKia16I/R5eQbMvg/nuuExIOo EsmamI4IcSqaWDbgj1QI2U5UNxGD2gg2aXPp3AG/8LKk+DYun3Tr/Ia7I/3fyaswILPY iFOetTVWWnaeVw9UErtyJYUd0UTCsBFoDGmqWVRrBXkxxqZm7K3ByYcjGnj7KjJScUys iRxFNlp+MeuS58Nbp0hcJ1NkqFpJDmJbMw/QZt1SNfWKCZVfagLetvmZWVYHoqkcQScJ 8gAw== MIME-Version: 1.0 X-Received: by 10.31.16.101 with SMTP id g98mr57270870vki.41.1451795527461; Sat, 02 Jan 2016 20:32:07 -0800 (PST) Sender: morrison.levi@gmail.com Received: by 10.31.63.150 with HTTP; Sat, 2 Jan 2016 20:32:07 -0800 (PST) In-Reply-To: References: Date: Sat, 2 Jan 2016 21:32:07 -0700 X-Google-Sender-Auth: VaZhujx0jGBKEOaF_Kkeow_tJUc Message-ID: To: Sara Golemon Cc: PHP internals , patriciotarantino@gmail.com Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] RFC Operator Overloading in Userspace From: levim@php.net (Levi Morrison) On Sat, Jan 2, 2016 at 7:14 PM, Sara Golemon wrote: > Patricio Tarantino has asked me to help him propose Operator > Overloading in PHP 7.1 (based in part on my operator extension in > PECL). I think we can expose this to usespace as magic methods with > very little overhead (the runtime check and dispatch is already there, > after all). > > I do think that the "Future Expansion" section bears following through > with as well, but the basic set of methods already hooked for GMP > would be a nice start. > > https://wiki.php.net/rfc/operator-overloading My ISP is having issues with no resolution in sight and I can't view the RFC right now. So sorry for asking a question that is probably answered in the RFC: this proposes using magic methods, not interfaces, correct? If so, what is the justification?