Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105051 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 81798 invoked from network); 3 Apr 2019 19:31:50 -0000 Received: from unknown (HELO mail-lj1-f177.google.com) (209.85.208.177) by pb1.pair.com with SMTP; 3 Apr 2019 19:31:50 -0000 Received: by mail-lj1-f177.google.com with SMTP id f18so15419952lja.10 for ; Wed, 03 Apr 2019 09:27:16 -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=9OAgbd0bMrtL41ewhKQxAyw5np4W9xhoPdnM1DqeJog=; b=YKTnJU8D/kyKFnvAsH7zklbOvCQOWNd/sRXMwT4+H2bcWIsso8KyuvgBWVmEFBXzj1 R3wPiAoBR84LiaCPZo+trqCiulQvSbcRHsPuovYN5yDnee9jKdkW5ct2rHx6lixxxUmF b2ptITp+QuUCwHUsjQGkDkqCAkAduyCuTLCHyii/KETmvLTz50/7ZXESxcbxjS+jvAk/ g0BRK2+qomdj/P5QtvkTZLuQp/6hAIvJcIrfH8ZRrb6r+wD5jj1jES75+B6MhLU1SDZT rrSv7qCHGtIaBk/ov8om6DzBhq5xOQ8CRKz7faRASDDbBJ0+rzvcgVxhJ+jAR8tRYS78 4SOg== 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=9OAgbd0bMrtL41ewhKQxAyw5np4W9xhoPdnM1DqeJog=; b=kL7tHNdnn/0GG6tjgqSNAqv8xv/ke4A0fSfEE6DNfD9ikYVTAo8YYTMCt8xXT+8wLR AQWad1+/tgdzONgJRXGvm7L71EI1upaOcQNrtLssnietkRKy1KRWMZZU6zHmJ285hVFI B+UkU9mCIfYrbkkRsL+ADOKCWGQcHHd9Nj0BimDTRzd29Oyh03QCEsH0bwrvj1oMr0sR jSR7kZYR3PL4j5SPQ6FRTk6TJDqmszWqCEWkoZ7j6Ljv8+I+1qZiLZ/90XNSbPqYP2CJ T83f7+/zgIpkQGKascON1LdIfCv2Ag4sTRCke4rOBR+FGhQiJKFhmg2iGreV7w2L0p8E +TMw== X-Gm-Message-State: APjAAAVpbwESNrZAOm0jRd3n3e1jpxuHVU6vyI4H/LRXTQgLLqyvmQVJ BlAeh00cl/1qY9m3KtYoxk7PAWvvJGUBpcxIZwU= X-Google-Smtp-Source: APXvYqx01z6csC/lAciX17X2Y1J6sndfJw2druzvgG+31mEEAeyL1StNN8y7+CKfS1cYq14BAhjjsr6GjLGgmr0N4qs= X-Received: by 2002:a2e:4a1a:: with SMTP id x26mr377476lja.49.1554308835265; Wed, 03 Apr 2019 09:27:15 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 3 Apr 2019 09:27:04 -0700 Message-ID: To: Sara Golemon Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000ff529c0585a2b9a8" Subject: Re: [PHP-DEV] Question about adding !function_identifier From: mo.mu.wss@gmail.com ("M. W. Moe") --000000000000ff529c0585a2b9a8 Content-Type: text/plain; charset="UTF-8" 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 wrote: > 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 > --000000000000ff529c0585a2b9a8--