Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126102 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 060351A00BD for <internals@lists.php.net>; Wed, 4 Dec 2024 19:26:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1733340182; bh=fP6i0AgsI4OV9rlhAq2RzoHgiqmS7lp7o8CaNjLpzeU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=CNJ6mOucCMUwAXNr2d9h4V9p4UP/IY0A+AcjxXa8P+Mejiw3sJKyJfjOsDi+V6AfT ilyDkMTlc5ATdPdsAABFMTKoMv4+t4a6SSHjINdZSG2I5UHEr+qQKcVBKeQ27BHBUI YiuatJ2Eg9EPBPBV7oGaAlXRoSzeYkaiO93xvKyF9Q1K0akMYX4yFn7G/jBDF4dE4e Ps/w+C2kIvZyqp1kmoDeIg1fXFhYBgObAKPUl5LRibcp0ytt0lSiiwrt4hDYacdH0t 2rkLFqTue+9HMzs2pYpTJShZZUKeAwAvU/Dp/dQQp60uBozMdfg1pKVyIAs+aUg9Kb ZArytE2DnOsIQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9046218007C for <internals@lists.php.net>; Wed, 4 Dec 2024 19:23:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-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,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: <volodymyr.volynets@gmail.com> Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for <internals@lists.php.net>; Wed, 4 Dec 2024 19:23:00 +0000 (UTC) Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2ffbf4580cbso618071fa.2 for <internals@lists.php.net>; Wed, 04 Dec 2024 11:26:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733340367; x=1733945167; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=iSJQdZHqlyi+IUvwQQwicj7/VgoaE8MFdRuTGXksm6M=; b=NWdx4ITpUGcVY8/cu+r4JnDrDgsktrRX4gCB2gB8xFfcKgigo+EAWlTE7jlu+AKjgR AKudruhtCKnltURgezPtovlaWJXEfFkRVd/2VNfKGbl/yCEROJlZun0p850jHX2LkJ+2 GRrfwIPEZ72LB+VGBb4j0334TaxEdMycPnJFAPRL6ft4DMZScu4Cm8s0l6DaIrOFN25G p8PQEVwphgcFyy2Ej6Syk+yQmV+pvPilLU+O0M7u9//OZlb2nP9nD/REUlTI1I4+VjpZ dmRotXrAekPnXalzl/yVsSLhU/hWcAlpwWTpFg3dJTWpyMqgpJvjlfTOe4ONg7aAr/ln 2XUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733340367; x=1733945167; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iSJQdZHqlyi+IUvwQQwicj7/VgoaE8MFdRuTGXksm6M=; b=eMKLlxktFHV0Gm0wBxIqehZXmHEvq1puWFhbticK5ZLmTvb9MPszNzbk48FDunMlw7 FqO+3AsnSXDt8BHma/5W4Qyv7GkrmqBEIK3c6JZ4YC7CWWm4NW0Umxw2WW0MYd7Yngc1 vEQYVbqHcHRyxDwyao/2VXcHTZA6bLMCRl9I2uIMMfiYHu4TvqEYPKSCkemqfS1tmssT pl4FnHJVyrO8DGnI5GebnvhxsdgJlzr3ye3XFth8ppWevG36ixg086mfjkESiInqp5Bj xlVpBJx+/rWOUWX6swnkD01mRRy6r3RF96rvh405XnEtwf1++gqeUgtkKjI6S7hXhxk4 KSwA== X-Gm-Message-State: AOJu0YyE9Z/lFhtko190LEYuwxAJWGuP4gotn1hfT6cN2VbR5eFqMqBw wEbfYcNX92V7NSBMlXKygmZx09OfomQnuJDHP732iZ/POfv7Q6wteESbbJYvINklBpONneNYdlu BsV9gJ9jEY3+W6JjI3DeYuRuTAWfmeMf+ X-Gm-Gg: ASbGnct+JZEEKmtMxxmlXyEprrpua8txeLj5UioPxoGWWfCo4pEpsn8KPzTGawaXyc+ fN2wef3PvSJt9GEj9WszIkXeiU9GKj2qf X-Google-Smtp-Source: AGHT+IFdKejKzT0QNQ6P9VqZwonZtqdI91FgcK88IQRaRYb6YScw6fOY9fdI+JU+j50wkB3TULY+I6oA5cxQZ6cC/PU= X-Received: by 2002:a05:651c:1504:b0:300:1f12:3d54 with SMTP id 38308e7fff4ca-3001f123f84mr1643991fa.1.1733340366740; Wed, 04 Dec 2024 11:26:06 -0800 (PST) Precedence: bulk list-help: <mailto:internals+help@lists.php.net list-unsubscribe: <mailto:internals+unsubscribe@lists.php.net> list-post: <mailto:internals@lists.php.net> List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <CAApwWmfN+u4p6WLcy4X=J4vOu5GYiwpqU8sGbg2PF3Bn8oOpHw@mail.gmail.com> <05f401db402f$71b5c4e0$55214ea0$@glaive.pro> In-Reply-To: <05f401db402f$71b5c4e0$55214ea0$@glaive.pro> Date: Wed, 4 Dec 2024 14:25:55 -0500 Message-ID: <CAApwWmc7Qbb9cUiN1V0quKUQ+pE95hBdWcvPt_HO4d4+nnHxyw@mail.gmail.com> Subject: Re: [PHP-DEV] Return When To: Juris Evertovskis <juris@glaive.pro> Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000d5aa19062876c064" From: volodymyr.volynets@gmail.com (Volodymyr Volynets) --000000000000d5aa19062876c064 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Great, thanks I went through RFC and discussions and there's new findings with throw: 1. *throw when* condition, new Exception('Massage!!!'); - throw when $success, new Exception('I am here'); 2. *return when* condition, 'return value'; - return when $success, $result; - return when ($result =3D Somefunc() !=3D=3D false), $result; How can we reopen a discussion on these two topics? Regards Volodymyr Volynets On Tue, Nov 26, 2024 at 1:17=E2=80=AFPM Juris Evertovskis <juris@glaive.pro= > wrote: > Here=E2=80=99s the previous RFC: > https://wiki.php.net/rfc/conditional_break_continue_return > > > > And the previous discussion: https://externals.io/message/110107 > --000000000000d5aa19062876c064 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Great, thanks</div><div><br></div><div>I went through= RFC and discussions and there's=C2=A0new findings with throw:</div><di= v><ol><li><b>throw when</b> condition, new Exception('Massage!!!');= <br></li><ul><li>throw when $success, new Exception('I am here');</= li></ul><li><b>return when</b> condition, 'return value';</li><ul><= li>return when $success, $result;</li><li>return when ($result =3D Somefunc= () !=3D=3D false), $result;</li></ul></ol></div><div>How can we reopen a di= scussion on these two topics?</div><div><br></div><div><div dir=3D"ltr" cla= ss=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr">= <div><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr" st= yle=3D"font-size:12.8px">Regards<br>Volodymyr Volynets</div></div></div></d= iv></div></div></div></div><br></div><br><div class=3D"gmail_quote"><div di= r=3D"ltr" class=3D"gmail_attr">On Tue, Nov 26, 2024 at 1:17=E2=80=AFPM Juri= s Evertovskis <<a href=3D"mailto:juris@glaive.pro">juris@glaive.pro</a>&= gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0= px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-colo= r:rgb(204,204,204);padding-left:1ex"><div class=3D"msg6633225457632246034">= <div lang=3D"LV" style=3D"overflow-wrap: break-word;"><div class=3D"m_66332= 25457632246034WordSection1"><div><div><div><div><div><div><div><div><div><p= class=3D"MsoNormal"><span style=3D"font-size:11pt">Here=E2=80=99s the prev= ious RFC: <a href=3D"https://wiki.php.net/rfc/conditional_break_continue_re= turn" target=3D"_blank">https://wiki.php.net/rfc/conditional_break_continue= _return</a><u></u><u></u></span></p><p class=3D"MsoNormal"><span style=3D"f= ont-size:11pt"><u></u>=C2=A0<u></u></span></p><p class=3D"MsoNormal"><span = style=3D"font-size:11pt">And the previous discussion: <a href=3D"https://ex= ternals.io/message/110107" target=3D"_blank">https://externals.io/message/1= 10107</a><u></u><u></u></span></p></div></div></div></div></div></div></div= ></div></div></div></div></div></blockquote></div> --000000000000d5aa19062876c064--