Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123942 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 149A91AD8ED for ; Thu, 27 Jun 2024 16:42:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719506629; bh=2xQ5YJVOySETT+siXEjQiwK9LRsNvev0YtjThCAm4lU=; h=References:In-Reply-To:From:Date:Subject:To:From; b=RbxaxZybzCjOjWGOraXxiToHlkk9J7F39PSWGnzHWXhZTs0gjfwziEXy2ScMFFl7N COlDR5jKcOhJVXGptHVAPuQgClzsmCbdd/S35kmcYwg/gY7PyEajDVrCoHufEX4ILp dldqG/ArROMni+n4Do2Zr4Pbb4JMowFwQIanY6B+m7jm/fW8HrPhan0l3C4wvZYGz3 5nIcQLd08W/EKLrg9FDFvbk/CHWfB0wB0/G2zq5ZNCBqrfkuL4z0hd1lHL5aNbg2RP b1T6sYOroyw6IMDTfkHzVOzhuq4Ii+z2jhDTZQVWMOhDlslw8/uHyyvn/qA0r5IUYj FVdt+GeLyguzw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9BBCC180339 for ; Thu, 27 Jun 2024 16:43:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 27 Jun 2024 16:43:44 +0000 (UTC) Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a72585032f1so633285366b.3 for ; Thu, 27 Jun 2024 09:42:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719506545; x=1720111345; darn=lists.php.net; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=2xQ5YJVOySETT+siXEjQiwK9LRsNvev0YtjThCAm4lU=; b=dvs7AfsF6L+89YouOSv8EVtuumCoOd7YnI4s0vRqyLTaf8cniUTf0qBj7bkhE3TY24 Wdm2VgV0NqzU/8KI/WRk0Grp+oxuLgdZmGyENI0NeoH3xpEadRvJYB88/AzoaxqaVcgy a2HwRL1lslwhUXglnCbEe02SyT7C5wuLf53KwS7dJxynYa2t7AnGiZZLvUu6vbHRzWJF HVI/SkAODwKGN4DOvLm8EBByqPw0pANk/hPJ2K1yqJH5vaGRDKHFptw3CGPNZUblUFpr RXSB69M2U5NiRN4c/5zeqNtSruKiUznc4l4YUyYDUVUUpprA3rDiQDpWiat89L5LHHEd QfmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719506545; x=1720111345; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2xQ5YJVOySETT+siXEjQiwK9LRsNvev0YtjThCAm4lU=; b=vZpXSrNcizGZnNssmRA6pohf8pSkwRrwHvX4rbdxoOHJi6NjN2DHkggBPJ5/KZVrOA RRL3nUpkOpUlGvX0jQs6k1RhjC8I2dyH7OGtjADgBLFPR1dRC1n0plwuG247+KBakSk8 rsgCujjoQ3tm6cWSyShmYD6Ic6Rl22JDFJY4rdhnTBGpjdOClbj6SXDxLMAVwUFEeEY8 yGFDH3rhce2HugLB1RnsY/gv9bzSYcrgjtBHFqeNhOjgm1G2s5YQrT2nZ0Sx+sxyHw2S S8Y12EI7DdwO2apXrCzRcgwunjOAwSbZ65aR+8xqXY+ISTqigg5iolVOPQLWOeK6BH8l 51eQ== X-Gm-Message-State: AOJu0YwF0YA/fsJhATbotUtgPXGaUzqpRwd+NKMDaJTdoEEhAYqYSAjA tRwEIo5wFgFYd+QFLaQZhRKhKNA8wUMFDMhsIOKiTFrYMioRJjh55Wq0PTePckf9MHqS1Nqsjht GuJMbdQphH6ykd/GNxU7YPagOgs5GY9g/ X-Google-Smtp-Source: AGHT+IFahvjrGTLpa9Uph2PKZ4OcS3TfwhT1mjq6qn0EJpC+FVtcwajp2UL+uyn/WJ1v7KjxL+qzCpC8GADhclw8hFU= X-Received: by 2002:a17:906:a88f:b0:a6f:12:8c45 with SMTP id a640c23a62f3a-a716556d42amr1013733066b.72.1719506544802; Thu, 27 Jun 2024 09:42:24 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: <2a6b92eb-d5e9-4a1a-9548-a068ac42ebd2@app.fastmail.com> <1E295280-619B-4490-B53C-0899B64F9215@chaz.works> <97a93ae2-5202-47eb-bf51-ec1e976ea765@app.fastmail.com> In-Reply-To: Date: Thu, 27 Jun 2024 10:42:13 -0600 Message-ID: Subject: Re: [PHP-DEV] [Early Feedback] Pattern matching To: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" From: radar3301@gmail.com (radar3301) > $p is Point {x: 3, y: $y}; > // If $p->x === 3, bind $p->y to $y and return true. > $p is Point {y: 37, x:@($x)}; > // $p->x === $x && $p->y == 37 I'm just going to put in my $0.02 here and downvote this syntax. I believe that it should be swapped. IMO, `{x: 3, y: $y}` looks too similar to the named arguments syntax.