Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109722 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 51153 invoked from network); 20 Apr 2020 17:15:39 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Apr 2020 17:15:39 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0AA581804CD for ; Mon, 20 Apr 2020 08:46:52 -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=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, 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-vs1-f51.google.com (mail-vs1-f51.google.com [209.85.217.51]) (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 ; Mon, 20 Apr 2020 08:46:51 -0700 (PDT) Received: by mail-vs1-f51.google.com with SMTP id g184so6321072vsc.0 for ; Mon, 20 Apr 2020 08:46:51 -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=8c4GVM7WCdfCJjUwuRG/fdWX+Gr6AH2oIHsyoZz6SY8=; b=ZhP4Za9NBiV+KSLAbB+bCsGQyH2vbaemx4ptv8882MkE8GCI0K1ZYzWq6Faq8wLLOn XLx2avDO/scztpy26h1UCmNeCnVCkvGITCRKmkGNLqA52xo/LSkpeOFvayoMl7YafRi0 HBuCyuJrkcIOm7rDz1bY3M0leoeyvqYbSUchx1cQC3EMuI30+jpvAwo5emKA8kJ6H6Bv swvuYBccC0SislVn7BmbfO6yyPKEGS+G6zyMTCrvMwzSZd/FGJoiSZJg2NrDV3CYg4Uk kkNr0jhGBme2VfEdR+nBpRaTjbaEXN7l0VgF4u76sVgn0sivF163T9IjFk1m1tITQIGr Dh0w== 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=8c4GVM7WCdfCJjUwuRG/fdWX+Gr6AH2oIHsyoZz6SY8=; b=MY6I4QxvJ36aS2OFt0grE0B8Be7qNu2EEhpH3pAQn7JmhDHz+NXC7MToYc2fuumVfZ Bz1bxuEbyQF8c2OJ1EaIKBR8KGbN2trd7+CQD3t47gEw1Et8FnEJHezWWQlzYE6aFhpU +Eg9XBvnMhYn0quqQR2iuztXhkXXSXAN7MChb+yKylVgrVmUOFHkjEC3y5uJL/OuQpMD G5i6AI/oUKbtGlxBav9y9ty/x6hbDciMnhLTIBserln9/t+QTi8qcOMrkVOwU03RQNSE SikSpbgMA1JHDN8EcpiAzFNqb8wFej6Vz1xbdmcJmEL3tDOFn9R4aSbmIhAZgK7TMKr2 4YZw== X-Gm-Message-State: AGi0PualOtLOTMJfE76XlZJuW/UfUXm+6RlFz3JjJeO0cmI/jdMfIq+d 3/4DVtm4Mk3MyJ+/gHrUpuTF1D8Fwg/KersIRLRspi8L X-Google-Smtp-Source: APiQypK9d1hZtQyZkDDPP9DrsWXQd6Nf4og3zbUMXNKlS0WdAOFH6gILrkzbeUAedBS0Gb68gSOZGYeQa9SvfcVY5Bc= X-Received: by 2002:a67:28c5:: with SMTP id o188mr12771810vso.227.1587397607992; Mon, 20 Apr 2020 08:46:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 20 Apr 2020 17:46:37 +0200 Message-ID: To: Larry Garfield Cc: php internals Content-Type: multipart/alternative; boundary="0000000000008aaf5d05a3bacea6" Subject: Re: [PHP-DEV] [RFC] Mixed type From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --0000000000008aaf5d05a3bacea6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Larry, > Sure, but how often is that an actual description of what the code > accepts? I... cannot actually envision what code would actually accept > that mess. :-) > For example the recently added get_debug_type() function does, along with dozens of internal functions. Besides messy code, I'm sure that there are legitimate use-cases for the mixed type in user-land as well. use mixed =3D null|bool|int|float|string|array|object|resource; > use scalar =3D null|bool|int|float|string; > use number =3D int|float; I'm really not a fan of type aliases (at least user-land ones), but I also agree with Sara that these 3 "global" aliases would come handy. Actually, I was considering to also propose "scalar" and "number" in a later RFC. Cheers, M=C3=A1t=C3=A9 --0000000000008aaf5d05a3bacea6--