Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105050 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 75763 invoked from network); 3 Apr 2019 19:25:24 -0000 Received: from unknown (HELO mail-qk1-f176.google.com) (209.85.222.176) by pb1.pair.com with SMTP; 3 Apr 2019 19:25:24 -0000 Received: by mail-qk1-f176.google.com with SMTP id o129so10503397qke.8 for ; Wed, 03 Apr 2019 09:20:50 -0700 (PDT) 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=Linbw2ZUPHtSq3+KMYmS9jEjOEyRXv45ITFUCovFtT4=; b=KNg3cbOnwbwRbleqTThCeVtvAyE0TBmN7c6l7qOl3+YbKkVSWorncwjvpV2168CXf8 6kX1/zBR+txH8jGCsBONF6FHs9BkYfFECaERl7X7+zfL9L0EHBR7FrWMviC9VPZVuNSL aUqrZqghAF6s60NB5Ws2FRl5hUhg8CO2qa0fNuXzSDr1UhIQ0uq6qR0TL4wnGBj334te Sv5kpZu3DFlENf/6iQZ+T84A3XZonwEWYLhBDDhqa2AeAu17yAlFyYGzmhB+Wxr7SY3h Q3p3IrgRyySA1F8O0RMcHXunPT0kWK3hCT/noxkJTipFBg8e4Rk0zX4ZVX8j9ywseavq 6Wfw== X-Gm-Message-State: APjAAAXAVVOk+tK7l5PdZ4yF5B22ssVdS7At1Mh+5JIa+ZT8zmUDuNjo Ok8b502upKm5pzZHMda1GwSnOtI0rNuQZDtXDKtHCw== X-Google-Smtp-Source: APXvYqwr5YTpx5hcMWBZ0jx2tKV7bCLx5OfyDXEnqxQEMNjYw7Weiqj2bsLbmgjox9c2IQXMyNgAHLKNn9i/laOvrto= X-Received: by 2002:a37:ef19:: with SMTP id j25mr850505qkk.176.1554308450043; Wed, 03 Apr 2019 09:20:50 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 3 Apr 2019 11:20:34 -0500 Message-ID: To: "M. W. Moe" Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000095e4e0585a2a3d2" Subject: Re: [PHP-DEV] Question about adding !function_identifier From: pollita@php.net (Sara Golemon) --000000000000095e4e0585a2a3d2 Content-Type: text/plain; charset="UTF-8" On Wed, Apr 3, 2019 at 11:07 AM M. W. Moe wrote: > I have a quick question before any formal proposal; would it be complex to > add an exclamation mark indicatorin front a function identifier to indicate > that function throws; like the nullable question mark for types however > without any runtime check something like a pure syntax indicator to make > the code clearer? > > If you're suggesting something with no runtime validation, then why not simply use docblock annotations? They're widely supported and understood already. Basically, what will having that syntax give you that not having it won't? -Sara --000000000000095e4e0585a2a3d2--