Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110881 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 86803 invoked from network); 8 Jul 2020 17:48:53 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Jul 2020 17:48:53 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 22E65180506 for ; Wed, 8 Jul 2020 09:39:51 -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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-Virus: No X-Envelope-From: Received: from egyptian.birch.relay.mailchannels.net (egyptian.birch.relay.mailchannels.net [23.83.209.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 8 Jul 2020 09:39:48 -0700 (PDT) X-Sender-Id: dreamhost|x-authsender|josh@joshbruce.dev Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id B3EAA1218F2 for ; Wed, 8 Jul 2020 16:39:46 +0000 (UTC) Received: from pdx1-sub0-mail-a10.g.dreamhost.com (100-96-7-22.trex.outbound.svc.cluster.local [100.96.7.22]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id DC511121CF3 for ; Wed, 8 Jul 2020 16:39:45 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|josh@joshbruce.dev Received: from pdx1-sub0-mail-a10.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.8); Wed, 08 Jul 2020 16:39:46 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|josh@joshbruce.dev X-MailChannels-Auth-Id: dreamhost X-Slimy-Rock: 3f13b6dd3e423199_1594226386334_2743198060 X-MC-Loop-Signature: 1594226386334:2777501296 X-MC-Ingress-Time: 1594226386334 Received: from pdx1-sub0-mail-a10.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a10.g.dreamhost.com (Postfix) with ESMTP id 9860080758 for ; Wed, 8 Jul 2020 09:39:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=joshbruce.dev; h=from :content-type:mime-version:subject:message-id:date:to; s= joshbruce.dev; bh=N4jf1cwbJ0IvDFNCAAbK9ti0AvQ=; b=CXk6eWolgfCgP4 cvfnVBK2R+l21lVGjKxrm9/lr3gARXh0GfW9kR5hmYDZZy75G4cXqub0HzZz2LwK bOgF9+bepy10OtY87z8Yn3vBAFIIgzqt9JSxhh/pZSQAdTRf3VUuI1w2co7xEl5V QRB0Jr2YoXjmaGC9A8zLQcUzT/KUE= Received: from joshs-mbp.lan (21.140.29.136.in-addr.arpa [136.29.140.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: josh@joshbruce.dev) by pdx1-sub0-mail-a10.g.dreamhost.com (Postfix) with ESMTPSA id 5515680778 for ; Wed, 8 Jul 2020 09:39:45 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a10 Content-Type: multipart/alternative; boundary="Apple-Mail=_5656E7A7-A783-4B0B-B034-F032BB71B928" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Message-ID: <65EE4215-3F80-435C-B271-DBE30D26E2CB@joshbruce.dev> Date: Wed, 8 Jul 2020 11:39:44 -0500 To: PHP Internals List X-Mailer: Apple Mail (2.3608.80.23.2.2) X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -51 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduiedrudejgddutdegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegoufhushhpvggtthffohhmrghinhculdegledmnecujfgurhephfgtggfukfffvffosegrtdhmrehhtdejnecuhfhrohhmpeflohhshhcuuehruhgtvgcuoehjohhshhesjhhoshhhsghruhgtvgdruggvvheqnecuggftrfgrthhtvghrnhepteehudffgeetgfetffdvueevveekfeekgeduleduhfduheekgeduueevvdefveegnecuffhomhgrihhnpegsihhtrdhlhienucfkphepudefiedrvdelrddugedtrddvudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjohhshhhsqdhmsghprdhlrghnpdhinhgvthepudefiedrvdelrddugedtrddvuddprhgvthhurhhnqdhprghthheplfhoshhhuceurhhutggvuceojhhoshhhsehjohhshhgsrhhutggvrdguvghvqedpmhgrihhlfhhrohhmpehjohhshhesjhhoshhhsghruhgtvgdruggvvhdpnhhrtghpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth Subject: [CONCEPT][DISCUSSION] Instance as boolean From: josh@joshbruce.dev (Josh Bruce) --Apple-Mail=_5656E7A7-A783-4B0B-B034-F032BB71B928 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Link to working draft: https://bit.ly/php-0001 Discussion on implementing a means by which a class instance can = interacted with syntactically as a boolean. At this point in the discuss the only means discussed is creation of a = method (magic or via an interface). Ability to cast is not ruled out.=20 And, my limited knowledge of PHP at this depth, much less under the = hood, means there could be a lot of unknown unknowns regarding the ways = a boolean can be interpreted and interacted with; therefore, those may = not be covered at this time. I=E2=80=99m also not liking the overly contrived nature of the samples = and will improve those over time should interest maintain or increase. Cheers, Josh ps. If you have any feedback or information on social interactions here = that might help, please do let me know, normally I would have watched = for a while before putting my foot in - hopefully it doesn=E2=80=99t end = up in my mouth. :)= --Apple-Mail=_5656E7A7-A783-4B0B-B034-F032BB71B928--