Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93876 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74493 invoked from network); 10 Jun 2016 15:04:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2016 15:04:47 -0000 Authentication-Results: pb1.pair.com header.from=pthreads@pthreads.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=pthreads@pthreads.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pthreads.org from 209.85.213.52 cause and error) X-PHP-List-Original-Sender: pthreads@pthreads.org X-Host-Fingerprint: 209.85.213.52 mail-vk0-f52.google.com Received: from [209.85.213.52] ([209.85.213.52:34284] helo=mail-vk0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0F/F4-50092-D07DA575 for ; Fri, 10 Jun 2016 11:04:46 -0400 Received: by mail-vk0-f52.google.com with SMTP id e4so101117518vkb.1 for ; Fri, 10 Jun 2016 08:04:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pthreads-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=hJaetsOZIWlYxX8XBhFMF4vawLF4yHO3jsolEb+C7tI=; b=sb8xhLQFoMeyJrk9yG4p+wl8WT+Y4CkX6TSH3JHDT9AU8bK0nCbmxHBw9O1g98FK41 3/d2GODIRzc7gswUToM8C0c2N+h5mVEcDRLCjF5l2cDzjpJUui3YwYNMrVm26F05SZZX 619zRNkCzxT6Wgl7MpUKUbgSwBHc5J1bzwl+6v6GovcMmvF3Vnk22c6lV2vNpqEo9EE8 UpebQseEZGUS+o2pdgZmuTaqMgGxaJRmZw59+0zTVB5/XYjbL/tqk0ew4OnhbtDESU3L vPPrIolqXrSQqFUtrpOwOWEBB05fNvkIadcg1PDTQ1obYH1IjVd0kJCWNH1g4RBOQXao f73A== 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:cc; bh=hJaetsOZIWlYxX8XBhFMF4vawLF4yHO3jsolEb+C7tI=; b=c0/Dcf2C3g37aOyAB2AeHIteQ23Bnx1MNtaM/PktUOL4KDyJz/o28e3OWmH5pLz+eu CjObIxY0UzZ/dpT7u3gQXr8bRM9nT3pJ5M0Jlw9PrLMKGzd2nreV84tJ58rJep3ueWLE K+4LhbIr4z/23QqFV9Uhz3UyKHc1zrPapB+f/PPtOPsWNrN8dNoGc0s5m5TKbijMpWki 16w4km2WizWFMrfBnHz8DmmSYxXjR8ndvTNHle0q+B4QKE4lubGq4k+bZBOnsFY7Stfq 7zk7S3gLMYVXecSHQaz4JIKv+1Re5ypMbHMUqCmm4BQFn/0sQiWFx4S/Ezd6BvwqtB6G cvXA== X-Gm-Message-State: ALyK8tK2JGI39+WLxCGzVpzb0YXaHaBjzS3dOkCC0GEIfc4P6Zq1/Qn/qZ61nqE5t4VS555iJHBo3yunSLoRvw== MIME-Version: 1.0 X-Received: by 10.31.167.84 with SMTP id q81mr1051568vke.51.1465571083340; Fri, 10 Jun 2016 08:04:43 -0700 (PDT) Received: by 10.103.47.199 with HTTP; Fri, 10 Jun 2016 08:04:43 -0700 (PDT) X-Originating-IP: [109.157.60.99] In-Reply-To: References: Date: Fri, 10 Jun 2016 16:04:43 +0100 Message-ID: To: Levi Morrison Cc: internals Content-Type: multipart/alternative; boundary=001a11415d60d0e59b0534eddb86 Subject: Re: [PHP-DEV] ReflectionType improvements From: pthreads@pthreads.org (Joe Watkins) --001a11415d60d0e59b0534eddb86 Content-Type: text/plain; charset=UTF-8 Afternoon Levi, Since communication broke down over the last few days, I'm happy for you to move forward with the discussion period. Voting will have to be abbreviated to make everything fit. Cheers Joe On Fri, Jun 10, 2016 at 3:50 PM, Levi Morrison wrote: > Now that the mailing list is working again I'd like to propose some > improvements to the ReflectionType API. We added ReflectionType as > part of the Return Types RFC. At that time the API was intentionally > kept minimal to not step on the toes of potential future features > (such as enum, union and intersection types) with the intention of > fleshing it out later. As long as the release managers for 7.1 are > okay with it I'd like to do these improvements now. Shall I move > forward with an RFC or do you consider this too late? > > The proposed API looks like this: > https://gist.github.com/morrisonlevi/5819a2b8d86561849ee916a7bcbc9c29. > Notably a `ReflectionClassType` will be returned if possible which has > a `getClass(): ReflectionClass` method. This has been a commonly > requested addition and simplifies a common use-case. > > I tried to discuss these changes on Reddit to gauge community impact > but it had few responses: > > https://www.reddit.com/r/PHP/comments/4m93s1/i_want_to_enhance_and_break_the_reflectiontype/ > . > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a11415d60d0e59b0534eddb86--