Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118120 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 68087 invoked from network); 29 Jun 2022 12:42:57 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Jun 2022 12:42:57 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E6B961804C6 for ; Wed, 29 Jun 2022 07:34:13 -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=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS714 17.58.63.0/24 X-Spam-Virus: No X-Envelope-From: Received: from st43p00im-zteg10073401.me.com (st43p00im-zteg10073401.me.com [17.58.63.181]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 29 Jun 2022 07:34:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1656513253; bh=foSVrqt+pacsp5fihIW2f+4fq34xj2+OWHnxBBM6fwA=; h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:To; b=yL2B7in+cfqo2qdruPWNGi+4B1lLmt3PSFru2SwU4tY2sxsV9s7VbIcPEpldljmIu UiFZyyJlAJyfWhrzgobGtZtqlLeUSxbrTYbVgYwvFZYJwfK+8snkB0qegbavsWQ8xp eFM5Qt6HqtmN+aspQAGEDIw9Xc8+7rR3mGpzNZLwlnq/RgumfMchgpIU/BpdTZPZt4 bl++YWT2pwbrZ0lHcH8xlf1ok+v3fs2Ihjbub2FlZRWxXWENoqAkoSJ9liujhouvUl 9LOA/ONtAonUtLOB4L9YtOUM5XUvwvUy3I9F9XfO+477VGpCr7q5o60+aCt73oz4Gj yriEg5X4nqgGA== Received: from smtpclient.apple (st43p00im-dlb-asmtp-mailmevip.me.com [17.42.251.41]) by st43p00im-zteg10073401.me.com (Postfix) with ESMTPSA id 01339A8110C for ; Wed, 29 Jun 2022 14:34:09 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Message-ID: <982FFD13-6B2C-4A28-8091-886F2F637B86@me.com> Date: Wed, 29 Jun 2022 16:34:09 +0200 To: internals@lists.php.net X-Mailer: Apple Mail (2.3696.80.82.1.1) X-Proofpoint-GUID: opYKwOO_H0n0VTLXxEb-4xXHC5REGxRW X-Proofpoint-ORIG-GUID: opYKwOO_H0n0VTLXxEb-4xXHC5REGxRW X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.138,18.0.816,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2022-01-17=5F04:2020-02-14=5F02,2022-01-17=5F04,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 spamscore=0 mlxscore=0 adultscore=0 clxscore=1015 malwarescore=0 bulkscore=0 mlxlogscore=299 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2206290054 Subject: [RFC] Exception type hint From: amakdessi@me.com (Antoine MAKDESSI) Hello, I am writing to you regarding my issue on php src available here = https://github.com/php/php-src/issues/8843 and the request of the = creation of an RFC. I would like to know if, like all the recent improvements of the php 7 & = 8 internal engine goes (return type hint, arg type hint, props typehint, = etc) It could be beneficial for the whole ecosystem to have as well = exceptions type hint. framework/libraries could leverage this with internal exceptions = classes/interfaces and devland code could rely on those to better handle (un)predictable = code execution leading to exception I can of course imagine/understand that this may be a deep internal = risky feature but felt the need to discuss it, so please feel free to = answer or decline this. Kind regard, cheers! Antoine,