Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109825 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 40007 invoked from network); 24 Apr 2020 14:57:35 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 Apr 2020 14:57:35 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E4FE71804CB for ; Fri, 24 Apr 2020 06:29:46 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-il1-f181.google.com (mail-il1-f181.google.com [209.85.166.181]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 24 Apr 2020 06:29:46 -0700 (PDT) Received: by mail-il1-f181.google.com with SMTP id w6so9269354ilg.1 for ; Fri, 24 Apr 2020 06:29:46 -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; bh=nzTVcuM2YwQYSCIcq+vhVf9bv5g2+U1vegdrOsJvxUQ=; b=YvJ4u8IzqRnjaOUh3wdywwbOhnv2iRXT00YHQKWrH8QKapeNusHxxbtAQthTAdou1I zgWUuV5X9r4jynzF5PrKtZznqNquB4FQQlVJHSeRgLW8OgINythCVTHJ+/BuxBn87ogm /GmQu1wOrgMCKtipiiukofDHQSb0OZGBB3O4j1wvGuQ35LG41ihr6sSd6/E+jKb5uxSU hhUhi32eJQsciNb8NIDKQDN9DUD2DArk8ZhnoydQ4QqDmSiYiaWUmlzUfI0vxgI+FzKq PGujaI2c+5MaTO6V4fb9Xf6julZqE4smZ9Kb34jXGL/WRWjMycOmwa84xyrPiG99yinU VsrQ== 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; bh=nzTVcuM2YwQYSCIcq+vhVf9bv5g2+U1vegdrOsJvxUQ=; b=RD3iEEm1NfV+FFHbxrXc6SmhX0o/fbjzsDWmKF6cQzA925HHX0QakgQVae5S1SGSOT hKmkMHturZYigJY/q8bcARbwGWiSv6jeHnS+EFtWV6AMYrkAC34wsx+tBgu+rHGjHC3C IIS2Kb/GZHl0k8mwy1vI/UqCmFDqV1IvRx4vq3WfXrVc52uh74oWZ7K7P0OGwPI9ldrW uobTL/dGpuek05gIuxbAHsh29IPULkYppDyyZJrxp1K0edlyzyKW/JPZ9CfBybNv2Ar7 2uYG+BHNwzg3kfV+ABsHGBL+uG4TtPM3pFAPxNSsgF0szLrd/4+vTkRR4menqhn3U/dr dDKQ== X-Gm-Message-State: AGi0PuZcbfzc7W+SSdgTEipaHvpucw8T9eLLgVD8WSyztv1if4EiAlr9 BKyEt2lvenHHGKxyTKiu5FIulCzXgJ6K+dJd0vyz+g== X-Google-Smtp-Source: APiQypIDA54zBUsL5l0IV3QUa1a5vTDz3b9YT2Sj5VsmTqhMHPy7VMPjCVjQ2QjcOmNtA4996xumtJ14OTIJsU+RpnA= X-Received: by 2002:a05:6e02:5cb:: with SMTP id l11mr8900302ils.236.1587734983114; Fri, 24 Apr 2020 06:29:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 24 Apr 2020 14:29:31 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000ac119805a4095b2e" Subject: Re: [PHP-DEV] [RFC] Mixed type From: rowan.collins@gmail.com (Rowan Tommins) --000000000000ac119805a4095b2e Content-Type: text/plain; charset="UTF-8" On Fri, 24 Apr 2020 at 13:18, Lynn wrote: > I would love to see mixed being added as it lets me remove a lot of > docblocks that are only added so I can indicate mixed. I disagree that it's > patching holes, it's filling a gap that's currently missing something. > I realise it's partly a matter of style, but if I were benevolent dictator of a legacy code base, I'd prefer to keep the docblocks, and mandate that all uses of "mixed" should include a comment describing what the parameter / return type represents / is related to. Similarly, I wouldn't delete a docblock for a return type of "array", because I'd want more specific details (either using "type[]" syntax, "list" syntax, or a comment describing the "shape" of the array). I'm not as strongly against adding "mixed" to the language as Bob, but I'm not convinced I'd ever bother using it. Regards, -- Rowan Tommins [IMSoP] --000000000000ac119805a4095b2e--