Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105053 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 90973 invoked from network); 3 Apr 2019 19:57:18 -0000 Received: from unknown (HELO mail-lj1-f171.google.com) (209.85.208.171) by pb1.pair.com with SMTP; 3 Apr 2019 19:57:18 -0000 Received: by mail-lj1-f171.google.com with SMTP id q66so15506822ljq.7 for ; Wed, 03 Apr 2019 09:52:44 -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=i91IBD+HE0MvC3EftuPJuAJ7miklm3ObIRq+kFCPElQ=; b=K8JoKdr+El5Ah9BFtMgbLIoL7l+bNuvhvV2Use7LTV9npqLSdSh2+my9dEnjXROQ0k vFxN37SiIj+kn6gJtlFYupAAnfTwU361i43O6IzlOmKjQ8xWFV40hn5a1UXBCg0eEFBS KKT/3P+al0qtfgAnaqI6lJheWXLxosTyJH7ntvp+s+Dimr3RTKMGgb2FHYDm93pLKJic k2jPYGX8fDcifYn4FpPLsvs0CzJJeE/Aae3jF1hLBW2c13wDZCTv6eXefYXOFIuNOv2B oXHCdObVVPnXsuScaMJCGpG+jvFCD6uSxsHGOCVEs+ita66L4bzkDDIw0iK2nZLdPsue ljDA== 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=i91IBD+HE0MvC3EftuPJuAJ7miklm3ObIRq+kFCPElQ=; b=dTdC+fUJKd6WAUDcWh3XmbKcn/h3cQW94OzVTasVSlzWgJhTa4w2xlHcovCOU2How/ DhPOSI244J9fW35I7Zu9QhEkK6loISimlckjHgVQgIGMukWbitp6db16lkIa+9WaBFYB TfyIoNWiaR0VfDphe1Hn71pYKfMvOBxloLfOetwtCjO8OnVv9X1uKNmd1wtpaL9gemsK 1qXYSdz+AjSF4s3rpD3J8OMshRvnTyvXW/qHBTbllAUJ+WnOmAHYj8SzjOsHMx7VPMP2 p7jCFmphVcGTDmH1f3vIbkra22Fr/BVssdK3084BfEnoKA8INcISSBeHcNxbNIzqysdj Sv0w== X-Gm-Message-State: APjAAAVYeFIUvb+iuAcy6uKriUJ2Yqk6NvqsstMVilB9+elSF7RG2tWb OIwz+UH6IvR+Sr09Gtd/DsgIioWq9RGNAXvwSRE= X-Google-Smtp-Source: APXvYqwezQD+j8subVgpIw5jyckUvH6YFcgJM7y/EybNl44yuRI0vZs+6p586z5vpI7VI2zC8vrvzHLBvNz7w4lk6L8= X-Received: by 2002:a2e:9d99:: with SMTP id c25mr432067ljj.159.1554310364205; Wed, 03 Apr 2019 09:52:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 3 Apr 2019 09:52:33 -0700 Message-ID: To: Rowan Collins Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000002116b20585a3153a" Subject: Re: [PHP-DEV] Question about adding !function_identifier From: mo.mu.wss@gmail.com ("M. W. Moe") --0000000000002116b20585a3153a Content-Type: text/plain; charset="UTF-8" Hello, not documenting at first is not really a question of laziness or so, as 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 and 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. On Wed, Apr 3, 2019 at 9:42 AM Rowan Collins wrote: > On Wed, 3 Apr 2019 at 17:27, M. W. Moe wrote: > > > yes this is very true; but usually on complex design with a lot of folks > > working on it you start coding before documenting; > > > > > If it's just syntax that doesn't change behaviour, it's really just > documentation anyway, and if people are so desperate to dig into the code > that they can't write a minimal docblock (or so lazy that they won't), how > likely is it that they'll correctly add this new indicator? > > If you want to be explicit, don't put off docblocks until later (writing > them before you've even implemented the function can be a great way of > clarifying your design), and use an IDE or CI tool that will tell you when > they're missing or incorrect. > > Regards, > -- > Rowan Collins > [IMSoP] > --0000000000002116b20585a3153a--