Re: Question about adding !function_identifier

From: Date: Wed, 03 Apr 2019 16:20:34 +0000
Subject: Re: Question about adding !function_identifier
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-105050@lists.php.net to get a copy of this message
On Wed, Apr 3, 2019 at 11:07 AM M. W. Moe <mo.mu.wss@gmail.com> 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

« previous php.internals (#105050) next »