Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100949 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13208 invoked from network); 25 Oct 2017 21:52:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Oct 2017 21:52:42 -0000 Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.192.172 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.192.172 mail-pf0-f172.google.com Received: from [209.85.192.172] ([209.85.192.172:55848] helo=mail-pf0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 13/9E-58908-9A701F95 for ; Wed, 25 Oct 2017 17:52:42 -0400 Received: by mail-pf0-f172.google.com with SMTP id 17so930332pfn.12 for ; Wed, 25 Oct 2017 14:52:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=rhwGOqHqRTMWo7O2vyrjOso2a2itEDyVxbgdIowalrY=; b=QR58vlUT746E5gvxH+Y7bpWPdRLdN7/s5wx0Lsuytaokm4xfZOeTan01T6dOy/PPXM NDe6HGjuVIrfxX4ubuuLes4bYzj3/Jdnw0WVRjmdlS34nLFG1fGuQBJumeDIVU4HE4S5 4r4MSSKwA6xq+jMOYNpaRkDSB5hm48tcS7T4fwJjiIzjnCfEZT+kSN8PhePJHcrJPbaA 0kdzLeInvTSZlztz8C8JQdgPSuDah+WSqmD31tf6pw5j8R8L4GPJeleeBom8rXxyZAyn RFzcJucCfi6ie5MjsdOOjJ4E6aIQp8x8q1TMr9LCtv57LycN1qUTY+91PUTJtCvS8u7W 1R9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=rhwGOqHqRTMWo7O2vyrjOso2a2itEDyVxbgdIowalrY=; b=gET0OuUEbrr+aAT72VRo1vU15HvzSAmmaF/siK31RW726i6Hum+gZ7deLQ3qvUG5XJ kKZ5QTpItIANkcsyIi/li/CoxcYw+8l8kE9GNTRAmQDXng57dHmDKeo654FwOK1nUdsp XiD+RRheXm65R9eHcC+PnxoKmT2MAn0aF946TXG9F+5LjdnQI8PY6lTq5eoOXQCrDICW j8uogTqxqa7h1Nal0zngjlY4uszGxBMPcelSu9VRItoT1d2t+C5z6ElZmEE99gLYn2a3 ERN6AtuSrYi/QSPnueOndZdVUWyaUksKMDDhKFZuS1SqWrKWzt4CrJCIYM/xTIGsD6/x pHYw== X-Gm-Message-State: AMCzsaWTiYxrFqLihC6QUcrXxkH9ubEQKoy/guciSzkcAPjH/n281kuQ P33LeUQ/FswA0ug8NWLPC1tyCYcy9cYEkr5/FHvJtA== X-Google-Smtp-Source: ABhQp+SmhJPMAA4sRfhWD6rellmMaZzwTz6X7N9wJ+mtrdVGoFQsgUKsrakIkGOwPZ99Mj7qvN0/U2K31Kkg4e9JI/M= X-Received: by 10.98.162.26 with SMTP id m26mr3438746pff.0.1508968358367; Wed, 25 Oct 2017 14:52:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.176.11 with HTTP; Wed, 25 Oct 2017 14:52:37 -0700 (PDT) X-Originating-IP: [77.99.17.151] In-Reply-To: References: Date: Wed, 25 Oct 2017 22:52:37 +0100 Message-ID: To: =?UTF-8?B?TWljaGHFgiBIYXLEmcW8bGFr?= Cc: "internals@lists.php.net" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC - Array Of for PHP 7 From: danack@basereality.com (Dan Ackroyd) On 25 October 2017 at 21:41, Micha=C5=82 Har=C4=99=C5=BClak wrote: > Hallo, > > I think this RFC should be voted again. Although 'array of' as well as full blown generics are popular ideas, I'm pretty certain the RFC failed due to the type check on the array happening every time the 'array of' was passed from one function to another, which would make it too slow to actually use. An 'array of' RFC almost certainly needs a different programming approach to have a change of succeeding. > What should I do? If you can, either learn a lot of C, or hire a world class C programmer who is familiar with PHP internals for several months, to make a new implementation. Joe might have some thoughts on alternative approaches. cheers Dan