Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103790 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 10261 invoked from network); 23 Jan 2019 11:41:33 -0000 Received: from unknown (HELO mail-ed1-f43.google.com) (209.85.208.43) by pb1.pair.com with SMTP; 23 Jan 2019 11:41:33 -0000 Received: by mail-ed1-f43.google.com with SMTP id o10so938335edt.13 for ; Wed, 23 Jan 2019 00:19:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=JuOA4uK+GCGTGmhJLAB5hcaPLRJe9SRthTvZhFbS+JU=; b=mjFpy8UQ3Is1xOxnrqxXD4sAy3cX31jgqiCfQQCMEtozsxsEB0CkDqNgu2/2AM6Rpo MdlkLxJRfNZca9Bsfg/qz1DBn6GzRKtIGHI+o7uMb7uec8tgiD3nz1SvlzxvqVrzfta7 1O7ZHZuYN9Ab/X9ZgPsNpnX4d3dpMzETnfXBlOBCvO41cXAN5ivWPKqKa3opz9cc30c3 sHnsbf1vpVXCCs2mFGSci/Bzl7kyEhFgE0EAl0cCSSj2BCNKCljoPOexSRe9QlGHQkQg kEz2Yu1ByYkTN9YQcHA424ClONpXNdUHY3qXQmG/izbYRQ9VVJApsTbYYzzuYh/avt7I +4BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=JuOA4uK+GCGTGmhJLAB5hcaPLRJe9SRthTvZhFbS+JU=; b=kPg1R8Pic7AFjuXX/J1PtjiLeyxxJOU8FkR7+dj6CNCZqvsR5OM0PMaGdZjJaFGhmx AC0kMMh+8kG/79fmTdgxIEIp2ptLIjdPzzrTyI+ig7+QkmZwcqagIwtIOQjgy49f3ZTM MiAPYxyTXojsPaEd2fj9gjcr4rsl2JByjXAgFR5OX6rcpNOpp+888/FlQcJDBkt4wHDT KVPXaCGMF480XXveN7rm/GagtPGSt6nbxBh0TrztZ9NCv1vBwnwQAiWF47Qjq13x2eKX aRUViap77GBy+qru+CgJTe2g4zbmITrSjBwO75329lvA/JHBZ60QyPpcOYInbHWfQOWb YvVg== X-Gm-Message-State: AJcUuke+9rRQREzgyMHsQt02dwYMzRblZ7Vnste1CafDESIgYkwVkuzr qjHp2IG4SpDu+QRfXUVgqS0= X-Google-Smtp-Source: ALg8bN5/qMqvRU/VnWtBoTATDojyuvcHKlnTCzhHycPzGAS7mV/dSW6qVty7EJ7bUQFOKZo6Fjsw0g== X-Received: by 2002:a17:906:1248:: with SMTP id u8-v6mr1602613eja.245.1548231562759; Wed, 23 Jan 2019 00:19:22 -0800 (PST) Received: from [192.168.0.63] (84-75-30-51.dclient.hispeed.ch. [84.75.30.51]) by smtp.gmail.com with ESMTPSA id t10-v6sm5387632ejg.41.2019.01.23.00.19.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Jan 2019 00:19:21 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) In-Reply-To: Date: Wed, 23 Jan 2019 09:19:20 +0100 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: References: To: Girgias X-Mailer: Apple Mail (2.3445.102.3) Subject: Re: [PHP-DEV] Deprecation ideas for PHP 8 From: claude.pache@gmail.com (Claude Pache) > - settype AFAICS, there is no easy replacement for settype(). If the second = argument is a string literal, you can use type coercion + assignment at = the price of duplicating the occurrence of the first argument. If the = second argument is not known at compile time, you have to resort to a = switch statement or something similar. > - deprecate array function creation (array()) Here, I was really wondering why you didn=E2=80=99t mention = function-like destructuring as well (list()). (Not that I think it is a = good idea.) =E2=80=94Claude=