Re: Question about adding !function_identifier

From: Date: Wed, 03 Apr 2019 16:27:04 +0000
Subject: Re: Question about adding !function_identifier
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-105051@lists.php.net to get a copy of this message
Hello, yes this is very true; but usually on complex design with a lot of folks working on it you start coding before documenting; I was thinking like c++ nothrow identifie (I do know does more than informal), I am the kind of people who like languages which are explicit before any documentation and a throw vs nothrow is an important contextual information, it will forcibly change the way you engage it. On Wed, Apr 3, 2019 at 9:20 AM Sara Golemon <pollita@php.net> wrote: > 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 (#105051) next »