Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105069 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 12703 invoked from network); 4 Apr 2019 12:03:31 -0000 Received: from unknown (HELO mail-it1-f196.google.com) (209.85.166.196) by pb1.pair.com with SMTP; 4 Apr 2019 12:03:31 -0000 Received: by mail-it1-f196.google.com with SMTP id y204so2551286itf.3 for ; Thu, 04 Apr 2019 01:59:07 -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=ltJ9sPMwBHIC5na6Ajy1Vj+i2Xh0xshwrNXQA7i0dpE=; b=ck35VymcQ4PNjMeOh4WcmzhlKf/KR3t5XVRFWqGKFPktfdTrSSs0AF+Btno0aeKh5x S70YA6rW1X34hZ/NjWusYTgk4orEVTPpysNuKRKEnwqIix530X10GYAMpX5XM9tNktZV 9xbCi3mGAgksXRpXH/SIVY+tpAr9rME1i9oyb0LHLZn/0t6efYtpltlhjQ0PBzbMr682 wScdhbHuEY+JmleI0L6k7T+d5huAfwtTHF3h/bsKgh1/qQXpUO9k8TTx3t8XkE5qqhpC HthYzmAM/iO2/35NhY3qrElhsO/DaZX28ON6dURmiRKU5DaIjvsml2mdafnpP++77Wwh TWkA== 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=ltJ9sPMwBHIC5na6Ajy1Vj+i2Xh0xshwrNXQA7i0dpE=; b=VGuYOudK+8e+z6X2xkf5/oamZI5xJrW2xSpGkI5H5asjN5A4wgwAIU34Fy2LQLJx1q u81lqNw1B2aRUxuJut8E+C7ocE+pfepHOUpXN2YwLSoU6SPxDMxtMn0zZKFSNns4h4AJ i2qdd8z6zt9vDbj61O+T3a3wYciI9mcJ73TiMw+Pldl6tHqt6+roHJp4mBrJ+OLKnGOz ELusfhpi8MuECGRdEBAHPEeGjiCejxh6WHbclYchF5ySDUz7cT1tHPU13QIik2/MOiuI E8eOE4+7BI+/4ai9zGhjOSOP8+AxCST+9y+x3g0VXR2sspJsArCD4+3pCwrXtXThZiuG ij7A== X-Gm-Message-State: APjAAAVGADI3SIxdP45OmtwIbvK9iypjAeXB/S3YRqg4aa484QmrMNe2 iutznpkyxtYdF/wo7D41Fd2jT46Qaczaz3o7bb4= X-Google-Smtp-Source: APXvYqyQSaeXHZkllDPpKq/MwCaN3wKpzRWmNC+PZaIiWe1yuDYSwbkKKZiTYUUInEYZi64lj9Qz5Z7l797ZE+qbpDE= X-Received: by 2002:a24:4584:: with SMTP id c4mr3936249itd.163.1554368347540; Thu, 04 Apr 2019 01:59:07 -0700 (PDT) MIME-Version: 1.0 References: <65AF9E1E-DFA6-47AE-952B-9ABEBD9B6038@gmail.com> <284d1f9f-03d3-1488-77dd-82e18edf9f4c@gmail.com> <3144F5D1-1F18-4C42-9B3E-AF1B1E598E47@koalephant.com> In-Reply-To: <3144F5D1-1F18-4C42-9B3E-AF1B1E598E47@koalephant.com> Date: Thu, 4 Apr 2019 10:58:54 +0200 Message-ID: To: Stephen Reay Cc: "M. W. Moe" , "G. P. B." , PHP internals Content-Type: multipart/alternative; boundary="0000000000003496da0585b095b9" Subject: Re: [PHP-DEV] Question about adding !function_identifier From: benjamin.morel@gmail.com (Benjamin Morel) --0000000000003496da0585b095b9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > Quite honestly knowing that a function =E2=80=9Cthrows=E2=80=9D but not *= what* it throws, > is useless. > Now if it were a proposal to add *runtime checked* `throws FooException, > BarTypeError` or similar, I could get behind. Same here. On Thu, 4 Apr 2019 at 02:48, Stephen Reay wrote: > > > > On 4 Apr 2019, at 03:29, M. W. Moe wrote: > > > > Thanks! > > > >> On Wed, Apr 3, 2019 at 1:24 PM G. P. B. > wrote: > >> > >> Hello, > >> > >> I don't really see the point of it as you self said this wouldn't add = a > >> runtime check, so in what is it different to a comment? > >> More so reusing ! for this will, in my opinion, just lead to confusion > as > >> people will think it negates the function, this is what > >> I would expect it to do at first glance. > >> Also comparing it to the nullable question mark is quite bizarre I fin= d, > >> why not choose the ampersand for references instead? > >> At least it would cover the same "scope", as types have nothing to do > with > >> how a function behaves. > >> > >> Best regards > >> > >> George P. Banyard > >> > > Quite honestly knowing that a function =E2=80=9Cthrows=E2=80=9D but not *= what* it throws, > is useless. > > Now if it were a proposal to add *runtime checked* `throws FooException, > BarTypeError` or similar, I could get behind. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --0000000000003496da0585b095b9--