Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109796 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 9056 invoked from network); 23 Apr 2020 06:00:27 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 Apr 2020 06:00:27 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id ABFC31804CB for ; Wed, 22 Apr 2020 21:32:15 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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-ua1-f44.google.com (mail-ua1-f44.google.com [209.85.222.44]) (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 ; Wed, 22 Apr 2020 21:32:15 -0700 (PDT) Received: by mail-ua1-f44.google.com with SMTP id i22so4384238uak.6 for ; Wed, 22 Apr 2020 21:32:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=v88mbsYFNhMuFrnq4ICZj3+KQLax3E0kcqQ/uEWILik=; b=aAvOw7YCPkWH8oB83Y4vNve2HjKq+nQ8TmHuddKkiFFnMRalCy+el99l/Z5YbbEsCx nfzou7qT6EKxIZFXNEsh/z7PEpTxKXPT0hGWB5VNNf5PVjzvp+VTFgP8BzF0PwphCVZe mR2+bbX7IeacAszew/Le98Cy6y+/F4bJVq4gAWm8Cxof3Pi8Shu0JXK72g2HrUuJqezi fZ75vjXipvrijzDDWs4i8D+ho0+H86LnKpVeZaD9/mIAsL9UVwkYwj0WNyQNUnywqcg2 GrdJjBpw1sQJdz1HWs1cdzmitXFtIA5WAxDAa40+gx91+MZOG6vgl35s0WVLvp6S809b n9ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=v88mbsYFNhMuFrnq4ICZj3+KQLax3E0kcqQ/uEWILik=; b=HbCIjw8N1Th2t+s7ETAg1N7HTMVw4zMkyyuhRDlzvlhrOa0pHg6S+m4EcyDB2Db/eL /KVUMVgipF08RuU+/N8dUR6Lyfzu6KTSXYtuuivx+nBJVI8B9NidccALbpkNZJxbDcKG FXG5luLJdgQ5cBVEWdjaV1en5V3BhPIGHQ8iIsi0b9jrQT9iP+xP2H/5fSka8+8MuIpp DDwnMoyhhIEBD+6t32jRsJHRgx+qPEHc6BVPajioF51X2B4rZR7NblZJgMiS12kpBEj4 w5Vio8Ul+mY/9TbDeDRdsBYF4IZqzu8Gr2P+L+c0j6d9OkOTRrXymnp5Zxd0TfCxg2Q0 XV+Q== X-Gm-Message-State: AGi0PuaxRz4FGZvgitivgXfl+rQNKKKiBZ8I41SLmBOGfoa9txG+AFfC l/x3E844raEunXFFQV3Tl755BGfI1GIl3oA9+/4= X-Google-Smtp-Source: APiQypIRj0BcdTUu0grpHHlTW5sZ8q5Wvqgd2+BCaKJXptJ2ad2Y2aVdmDmyB4vTiS8r6eUGo+XhQhmrhgV7O/S2VUM= X-Received: by 2002:ab0:1e47:: with SMTP id n7mr1555727uak.47.1587616334394; Wed, 22 Apr 2020 21:32:14 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 23 Apr 2020 00:32:03 -0400 Message-ID: To: tyson andre Cc: Andrea Faulds , "internals@lists.php.net" Content-Type: multipart/alternative; boundary="000000000000a6bb8805a3edbb60" Subject: Re: [PHP-DEV] Re: Any interest in a list type? From: matthewmatthew@gmail.com (Matthew Brown) --000000000000a6bb8805a3edbb60 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > For simplicity's sake I haven't > implemented a type declaration right now, just an is_list() function, > but it could easily be extended to one This is a crucial question =E2=80=93 should is_list function like is_numeric($some_string), where is_list just tells you about the keys in the array at a given point in the program, or should it function like is_int, where it tells you about the type. I lean towards the latter (which would make the implementation of is_list simpler, but would complicate everything else. --000000000000a6bb8805a3edbb60--