Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108072 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 40506 invoked from network); 9 Jan 2020 22:24:02 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Jan 2020 22:24:02 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EDF8E18053F for ; Thu, 9 Jan 2020 12:29:45 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-oi1-f177.google.com (mail-oi1-f177.google.com [209.85.167.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 9 Jan 2020 12:29:44 -0800 (PST) Received: by mail-oi1-f177.google.com with SMTP id z64so7097062oia.4 for ; Thu, 09 Jan 2020 12:29:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ralphschindler-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=FgAb6HYtD0yczG0ezRFrEq+kbCA4o87RQjY6loQpPSo=; b=sYTFlMLELuVtLwHtzHNDVMlZY57DAu9nOYzjx/HM2IqrIJuepuigNio9hXeybmfdPi BSHFyrclL4neJdeCiwdmJzC3TRW+ZrHYjph+KpPWtvvvznSf2bN9YivuL4km0Vl6Vyvg nJFmr3lhx4tlCJawg+WE9wTW/jHzQtGYq4S6QeBLoEs7DOY4q/LbsUDK2ZHdX0JwVqvq gtMySzmqZK4kjEIu8KLTNigba4IsduEWJcmwotEriUi60hCPMCiqvEkHdTwMY/lQ17Cq Z70vckt/B0xRboLf/UODXtez8u9xVaA0Q/g7FWovWpGHeT6qWcKLLSGs9Nomcmx5TDH5 f+Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=FgAb6HYtD0yczG0ezRFrEq+kbCA4o87RQjY6loQpPSo=; b=tL1SeE2p05ZSBc+eWODFayQhIkm8b5qTFYZmTbP8vvMHMkcud6gtj2Kk8O/oIUO2d5 LXPF6/jRqVeQrrsAB92vMDoY0fOB/FLro82ZZ5UWkfP/MlB0hihE8WReh+/3bNIsOl0k S1r3mxjIqGrsSvrZhJXgRaJ+9iE+s8d5aWzui1MHopjRqFU33ZIqbYJPyoI9Scpiw7CX Vl+37sz6YZHsqUG9O9M68QmWxnSogrp7rB3f2PTwnDXia6BNFh50yDxhiNeqQmQejWpP 4xxmSz1MPqFZeHyKOYIz2M3QcSVcXCkf86Dq8gwIEyvQzV3pkI50Fiq/Xg7Ad7oqpbcc bA0A== X-Gm-Message-State: APjAAAVBWAEZEz/lsHJ3eb4uB040Ycsc0JSh1FEdmVr9NG9atet00WiP +RQYO3rY7lf3GgU+8j/s5azXbhPgPYum3g== X-Google-Smtp-Source: APXvYqzkYkrQuznb/Czbm+PKf+0HBe7P2g5vrlZDW1/AD919YoEOupxxNI74fV6xHm1kONCZbG5AfQ== X-Received: by 2002:aca:af8b:: with SMTP id y133mr4756381oie.73.1578601782705; Thu, 09 Jan 2020 12:29:42 -0800 (PST) Received: from Ralphs-ZiffBook-Pro.local (ip68-227-69-11.no.no.cox.net. [68.227.69.11]) by smtp.gmail.com with ESMTPSA id n25sm2448363oic.6.2020.01.09.12.29.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jan 2020 12:29:42 -0800 (PST) To: internals@lists.php.net References: <13CC52AA-7690-42C6-89B7-B8FA4166BF38@newclarity.net> Message-ID: <57c08851-e6e2-c0bd-76e1-f7a0388d64b4@ralphschindler.com> Date: Thu, 9 Jan 2020 14:29:41 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: <13CC52AA-7690-42C6-89B7-B8FA4166BF38@newclarity.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Allow ::class on objects From: ralph@ralphschindler.com (Ralph Schindler) > Along those lines, is there any consideration of adding ::interface and ::trait, where applicable? How would this be applicable? In the context of variables, an object can be only of a single class type, whereas it can be an *instanceof* multiple interfaces (or an extension of other types) or be *composed of* multiple traits (in full or partial if there are trait conflicts.) How would you get the right semantics out of $object::interface, or $object::trait, and/or do you have an example of what you're expecting? -ralph