Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106850 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 91961 invoked from network); 4 Sep 2019 14:12:27 -0000 Received: from unknown (HELO mail-oi1-f177.google.com) (209.85.167.177) by pb1.pair.com with SMTP; 4 Sep 2019 14:12:27 -0000 Received: by mail-oi1-f177.google.com with SMTP id w6so3029784oie.11 for ; Wed, 04 Sep 2019 04:46:20 -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=RSuiaGNHHxpttTFlfC8heJi7dPQlN8HPzCHixsoxka4=; b=Pw6N3zuVUye8OWq28oxUfrIOfim5l6t58KK5lFAsHHqHZ48xMzMQcq3QxyNcykqhmO JxJMAMLljC0ZPOkbctHgaQLX1DgDpkeWyc+ps1MZhhlA/0zPO0bhMqC0jEy8hgAmARRv 8WtcqTfWnWDItgEWfFy3d4e8cTxlDb3245uIsD+V4lRuA4PgCh53H34/QyctddCcwrvK u1GT/fybQPYdaHZsUaORWPSJ+2VadO6zMt2zgNA4/GF2HuGPIl5I9y2zzlDlz2Mkq7Hq nRnVO9lVOIid/2JbnoBx9VwUv/zfFcnjqQVzeAtqwxQVzNQJsqfii52IsNXJPvzNrMH6 cXoA== 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=RSuiaGNHHxpttTFlfC8heJi7dPQlN8HPzCHixsoxka4=; b=BCeBZQpjw8V3yIxwrB33XXduGQwXJtU4jM/Nx3uVzJvhzsx2XzT0d53VHWpVoetHHz sBrp99WfNcxH8a6hRLv969W0pmw2ohSX7Kf2PouuZYQoNnFcGeIXUUbMPoPS0KVzrad8 P8JAauBOJUC1/xyFDJ1wtVD942ceb05e93OK2RcH3ae/fPOEvsi4Wy2Xjxzc+7wnU8JC L0UhtLupHnuvAcGhgNXloo4EjVkJdy3JsfNJ5QiqFt79k6d/xEGT20FH7h9GKLZTzEGe 9xo+SMVOsT5tNQdBHkgFAv90oTqlLqZb1C4kqgvEHj3RnCsi4nErK2yVJSY7Qow0e6yV 1Zsw== X-Gm-Message-State: APjAAAU1wQgb9Sto3Hfw8Gn+U1vy1E1RHOCy9cY9QpC4iEnUXdQBLZoW zO+jIC1+C3+vmNIr3xjg1gGGcl0G X-Google-Smtp-Source: APXvYqwkn2v8DqHyTmQF894c4Ewv0FHG8LrnaoZkVrPGW5mSLLu2SyVfMoV4sSSVSRbhVx2TIaFQmQ== X-Received: by 2002:aca:c505:: with SMTP id v5mr2776847oif.79.1567597580143; Wed, 04 Sep 2019 04:46:20 -0700 (PDT) Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com. [209.85.210.53]) by smtp.gmail.com with ESMTPSA id o4sm4123037otp.43.2019.09.04.04.46.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Sep 2019 04:46:19 -0700 (PDT) Received: by mail-ot1-f53.google.com with SMTP id b2so892578otq.10 for ; Wed, 04 Sep 2019 04:46:19 -0700 (PDT) X-Received: by 2002:a9d:2f09:: with SMTP id h9mr19446698otb.21.1567597579378; Wed, 04 Sep 2019 04:46:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 4 Sep 2019 12:45:43 +0100 X-Gmail-Original-Message-ID: Message-ID: To: Arnold Daniels Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000deb6c40591b8c0e1" Subject: Re: [PHP-DEV] [RFC] Union Types v2 From: phpmailinglists@gmail.com (Peter Bowyer) --000000000000deb6c40591b8c0e1 Content-Type: text/plain; charset="UTF-8" On Wed, 4 Sep 2019 at 12:30, Arnold Daniels wrote: > Instead of using `__toString` as type maybe it's better to introduce a > `Stringable` interface, similar to how `__wakeup` and `__sleep` are already > superseded by `Serializable`. I support that. I don't like the naming in `string|__toString`. `string|Stringable` is more readable IMO. Peter --000000000000deb6c40591b8c0e1--