Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107328 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 97247 invoked from network); 26 Sep 2019 12:14:53 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 26 Sep 2019 12:14:53 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id B31952D1FB8 for ; Thu, 26 Sep 2019 02:54:15 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: X-Spam-Virus: No Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Thu, 26 Sep 2019 02:54:15 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id r4so1404922edy.4 for ; Thu, 26 Sep 2019 02:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=+iOLnqUt9FSpD5PNfwE/NA49iHq7lO6hRA5ZaTQjrjw=; b=GvvFB5cyljFHKDRkQRX4lwrLq16cxIE2MkKFn7ag2dkoffwYbXbg1E9lpL2u6RizvN 8tsQKDbWn5m65jVnRyGc0m1Eo7QHDiLTpT7UHPD0bsYFjsgVQLYWG6JsVyWBp8i4EwuS Q3gcjcsFZT3jYDRnmVCG5rs2on8dkEE9x5/R28qwUFfqLFYOsRoootrtmI7501g5LQtC +xffRv9vO5JkisFbAyYWPPOpIsN1rgsjsIb9XGqrjTSSP2RfU7xw7GxMM4Utqai5Db2f AYp1ZcRazzfYhYFyRj5OxIEL0oqK3WqvuQ6b99eP/+OF3oo+e56iwZ5TBg5hV+XuJStF rMLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=+iOLnqUt9FSpD5PNfwE/NA49iHq7lO6hRA5ZaTQjrjw=; b=D4PoGIM4pWtuJ9twekQnuwB6QHy1vNx9hnfEC0mXx5X8soNFH6jWLTNNHPRsu4op4W mDXdfPGlN1R9A3XEQPypPQvhvgVvud2BjLTZy4eeALEOkvUkN7Op9FbgpolPkWOasF9O BYfjKgYF1QRWoLXicIT/0gwoVZkwU7+KZ9rT4UzO7tGvt3JWdnuf8bGo2xIeCn+jaVD5 56e14eRjKI6o1slitQ245AVF3mtlgkItB0aUYUpF6WXk0l1FnVAFQr5sTaM+ko0HAbLf +kAvXkp8rD6kZnB/pTw2Fu91z19+3lXI1bEIfgcPK9Q0OcCXGLhLWNZxeCCDQFXAx8qK 0uiw== X-Gm-Message-State: APjAAAVaTq+YSqXTSN4+b9f06bLoK1VviqPAf7ML9QM1REcRjn+gAPor 6/qSvPMIbsOtbtv93uEFiXk= X-Google-Smtp-Source: APXvYqxbNopsv4m0oagGTtooQC5hB9bnp8y6RdsBgGztA/23SLvHSLurIFkOqzd2M9CV9N3klKOOog== X-Received: by 2002:a17:906:f13:: with SMTP id z19mr2237202eji.209.1569491654091; Thu, 26 Sep 2019 02:54:14 -0700 (PDT) Received: from [192.168.0.63] (84-75-30-51.dclient.hispeed.ch. [84.75.30.51]) by smtp.gmail.com with ESMTPSA id x4sm171422ejf.3.2019.09.26.02.54.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Sep 2019 02:54:13 -0700 (PDT) Message-ID: <58467BC2-4FDC-4A71-A651-2CA90C6955CD@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_77524B3C-75B4-4CF2-A49F-62A8BE335796" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Date: Thu, 26 Sep 2019 11:54:12 +0200 In-Reply-To: Cc: Nikita Popov , Sara Golemon , Benjamin Morel , PHP internals To: Lynn References: <1544E25D-630F-4E02-BCF1-1A0DEF1EBD60@gmail.com> X-Mailer: Apple Mail (2.3445.104.11) X-Envelope-From: Subject: Re: [PHP-DEV] [RFC] Union Types v2 From: claude.pache@gmail.com (Claude Pache) --Apple-Mail=_77524B3C-75B4-4CF2-A49F-62A8BE335796 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Le 26 sept. 2019 =C3=A0 11:21, Lynn a =C3=A9crit : >=20 >=20 > I'm not sure this type should be declarable in user-land, meaning it's = limited to the core and a marker for legacy. In general, we should avoid to give builtin code functionality that = can=E2=80=99t be reproduced in userland, unless there is a good reason = for it. For the particular case, people may want to reproduce in = userland an improved or corrected version of a given internal function, = and they need be able to give their function the same return type = information than the original. =E2=80=94Claude= --Apple-Mail=_77524B3C-75B4-4CF2-A49F-62A8BE335796--