Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105129 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 9713 invoked from network); 7 Apr 2019 13:29:48 -0000 Received: from unknown (HELO mail-wr1-f50.google.com) (209.85.221.50) by pb1.pair.com with SMTP; 7 Apr 2019 13:29:48 -0000 Received: by mail-wr1-f50.google.com with SMTP id k11so12904726wro.5 for ; Sun, 07 Apr 2019 03:26:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:from:message-id; bh=wcfVwPhH+pSv6u8qqJfCdDTt2CW3s9jDTFtspultMcs=; b=IIW2U9JX/yEPjMG1rnPh+5I+KhCLNbRO42sF3XR/RRUfdfW6nzScQUnXbVyB/D5k7B RUAy9EK3j+xhGdMYhCwJtV81KkMTkTolOX8NZ6uOXosHpuf+Owy6KrSzuqhR2NBbfauj y0ie1K00a4lJrrSUSR+PWxfpZqRFWnDr80dcpkZ0x3cODNAmKSpoNet7esilK1t4TYr5 PJaRmrcJsfRFwJB0N+Qrmh6HrlLS23kXKRfiL9+vXXkxiufN/QZ2kdMxH0D2PiMzMG3U e2s2zhs7G5ALu4ZqIcONyqhksKbgisCJNqdbXaG4qf5bOW0xTisPyZUq7UoRSuzFIH1P LOGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:from:message-id; bh=wcfVwPhH+pSv6u8qqJfCdDTt2CW3s9jDTFtspultMcs=; b=UhSCNO2dC2G/CC8/tbR0w5PVHg88JhTzsk5LwWudQet0euSBfDVYhRylRKDR6YP6p4 xZaLN9JAbedSIfur+squc6hrn0LHvQa8rMuBsYcSc37T719Tf4kcKrlynHtFnVNeCzgF IbDJq2/hP8Sm3UUXErfp26jRmxb9hpP3ac4bk4ISaSGFPsDIr0P6MxfkrCsP1dOqkjov AZ662YT7ZHjKuRNTCrs5JY0PNCEl/kyJOsYo0Z8X2iXTdFD/H7wLZk8ld3jmz9hYX7iD LV2sAcFRW5ExkERqybDaKLKRVRrN2DfRU795PNJ8WtXLqiNplYg8ZqU1RC5KDHDNmIiA 3PUg== X-Gm-Message-State: APjAAAVPHn0gjsI7Qi+/a5ykhwR2rl5e5/hHQM3TRwI2XBNCuNkX+tDi lkw0cf0K65dMiB8+0oLqtjzv1z6b X-Google-Smtp-Source: APXvYqxLfTDV0SgzT5ALGUqK9sEYwO3jYLYV8UuRApTJFLPAqhKAdCt93YGRwubhltdA3ynmbQ4Pgw== X-Received: by 2002:adf:fd41:: with SMTP id h1mr12777650wrs.155.1554632769507; Sun, 07 Apr 2019 03:26:09 -0700 (PDT) Received: from [192.168.0.12] (cpc84253-brig22-2-0-cust114.3-3.cable.virginm.net. [81.108.141.115]) by smtp.gmail.com with ESMTPSA id 4sm7720260wmi.14.2019.04.07.03.26.05 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 07 Apr 2019 03:26:08 -0700 (PDT) Date: Sun, 07 Apr 2019 11:26:04 +0100 User-Agent: K-9 Mail for Android In-Reply-To: <00ab01d4ecfe$e0b03680$a210a380$@jhdxr.com> References: <00ab01d4ecfe$e0b03680$a210a380$@jhdxr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: internals@lists.php.net Message-ID: Subject: RE: [PHP-DEV] Parameter skipping From: rowan.collins@gmail.com (Rowan Collins) On 7 April 2019 06:00:53 BST, CHU Zhaowei wrote: >The [named parameters](https://wiki=2Ephp=2Enet/rfc/named_params) was >proposed in 2013=2E Does the problems which stopped us before still exist >in 2019? Since we all agree named parameter should be a better >solution, why not take a look at it first? I'm not 100% convinced named parameters are the solution to this problem, = in all cases=2E In order to use named parameters, somebody needs to have declared what tho= se names are, and made them a stable API=2E If they're automatically suppor= ted on existing functions, the author might not intend them to be used, or = even realise they can, so not keep them stable (I tend to think of paramete= r names as local, not contractual)=2E To use a default-skipping keyword, you need no extra promise than that alr= eady made, namely that the default for any parameter is a valid value for t= hat parameter=2E Regards, --=20 Rowan Collins [IMSoP]