Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105057 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 99925 invoked from network); 3 Apr 2019 20:18:12 -0000 Received: from unknown (HELO mail-lj1-f194.google.com) (209.85.208.194) by pb1.pair.com with SMTP; 3 Apr 2019 20:18:12 -0000 Received: by mail-lj1-f194.google.com with SMTP id q66so15564612ljq.7 for ; Wed, 03 Apr 2019 10:13:38 -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=jGy+pvU5a+Q2+vkmFe2WWZYuaprFJFFoe/EHv4DURv8=; b=enthU8lAh5HB6e3uYKMO2pkr85FiqkaJHPWOvaehsG0uPSZzClythW5QW4ACcPuEC7 5NoHiv+neSAe2mQIw2ApiLhwedh9a0gRq6jYPJv13BQMd6nm8Jm70JPunpymo/2/T58C 7F3bE94PgYXkYyw+HJfaebcNSGbsw/6+TGlAyF63QeqJ5NspqlpLL9xQY9e7FaDsTnCZ kl9tWfEJFFnLuDSXdmTwD14U3kzUALSgWfwFlqncyuLrVZZG2AlFF4u5erRPfE9W/rm/ 7kNFU1CY/CmUwaA/pz8ujmHjZmTpU2WxIKG+JsQaDSfVRsi/3IZrK1nvxj5ie3nprT06 Fg1w== 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=jGy+pvU5a+Q2+vkmFe2WWZYuaprFJFFoe/EHv4DURv8=; b=M9oqZdzUqV5Uex7uZZ2P8VzWiEKa0ZbC2omxGNHdAPwFUxxYAKY4kDToiUNat7cly9 w1+PKxkKsnqipZ3V6h0eQu9tW8IQeIQC5UVTn/MIingbj2PHclc2eS9g06ZRveAMZkNP FpGH7lGT22HxnsBji0ri9wXc8vWaA5hEDCYxRrUs/fkdwXUVyrp5SIrg00f+si1Q7Ufp ghTbbQUaTAaLrWpBqNiXqR4qnmTYGzt1tyHsaDY/Tl5xLmiQGx2Nqq/6FzcwQx+Gcxxv sPvzAPydk9mv5F2e1piCDrc5CDDwC3WN/uFH+H6z4qdfBSIMpxastmq5TOf43nWx2heW Ya1Q== X-Gm-Message-State: APjAAAUCFImlBMMlgGp8gpk1jyr1AZkwx5o20q/rnzYJd1g1RE9oB3wa s8t8xKHufpyclDehbfnHSU2g5rjHKZ26xnBWDkw= X-Google-Smtp-Source: APXvYqzgOSPhh4cdQiAekoVeK0uUrIv3f1VaX2LsuN2Ig1d8eD/MQ07vEFbMWAL04fejpBYBv4TZXfz6nsaVXLqlfUE= X-Received: by 2002:a2e:8648:: with SMTP id i8mr530045ljj.166.1554311617728; Wed, 03 Apr 2019 10:13:37 -0700 (PDT) MIME-Version: 1.0 References: <65AF9E1E-DFA6-47AE-952B-9ABEBD9B6038@gmail.com> In-Reply-To: Date: Wed, 3 Apr 2019 10:13:26 -0700 Message-ID: To: Claude Pache Cc: Rowan Collins , PHP internals Content-Type: multipart/alternative; boundary="000000000000d854390585a35f8b" Subject: Re: [PHP-DEV] Question about adding !function_identifier From: mo.mu.wss@gmail.com ("M. W. Moe") --000000000000d854390585a35f8b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The argument sits there. function handle(int $cmd, ...$arg) : int /* throw */ function !handle(int $cmd, ...$arg) : int On Wed, Apr 3, 2019 at 10:10 AM M. W. Moe wrote: > Hello, > > yes this is very true, but still foreign to the language construct; empty > contextual indicators it's what > we usually do in C and assembly (it has no cost) especially on extra > sensitive code to make it short. > > On Wed, Apr 3, 2019 at 10:00 AM Claude Pache > wrote: > >> >> >> > Le 3 avr. 2019 =C3=A0 18:52, M. W. Moe a =C3=A9c= rit : >> > >> > Hello, >> > >> > not documenting at first is not really a question of laziness or so, a= s >> > things are still moving around >> > you absolutely need this agility; a good design layout between theory >> and >> > stable state will refactored >> > discussed a thousand times; that what I expect from engineers; filling >> the >> > gaps between assumptions >> > and reality. >> > >> > And for me-self throw vs no throw is important language information an= d >> > part of internal behaviors; >> > to clarify, for instance, would be more useful to have such indicator >> > rather than having having >> > abstract and interface which are cumbersome; same as the extra public >> > keyword; you can do without >> > especially with the new traits construct. >> > >> > Best. >> >> If you=E2=80=99re unwilling to write a docblock for some good reason, wh= y not >> just use the built-in, user-extensible way that most programming languag= es >> have to add annotations without runtime effect, namely unstructured >> comments? Something like /* nothrow */ is both forward- and >> backward-compatible... Am I missing something? >> >> =E2=80=94Claude >> >> --000000000000d854390585a35f8b--