Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91225 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70060 invoked from network); 12 Feb 2016 15:21:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Feb 2016 15:21:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=ua.san.alex@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ua.san.alex@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.177 as permitted sender) X-PHP-List-Original-Sender: ua.san.alex@gmail.com X-Host-Fingerprint: 209.85.223.177 mail-io0-f177.google.com Received: from [209.85.223.177] ([209.85.223.177:33209] helo=mail-io0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D3/B0-00989-378FDB65 for ; Fri, 12 Feb 2016 10:21:23 -0500 Received: by mail-io0-f177.google.com with SMTP id z135so25181835iof.0 for ; Fri, 12 Feb 2016 07:21:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vl+XwBJSxktkEKcLGw4RsqO2UmQPic9hb7e5HzAOgwA=; b=jI5DZncyJ49Q4+D3m7llDQNOrS6w+xXh3c0q8wF0hmfdKibnA1hB1/V5rE5mgA8Fhl +RYSmzq57kwYktob+8vMJGykn1q9QGNvfpm+1oUxtlPGESRbZvWVFNi1CiKe12q51z0q x95A3rzuJKMwSpn8vchi/M3VCA/P7MGgUucT+qBGG0auhEZsaQdHmxqHpmS4QZz2kTLJ WWPqUxBjwvhFnHtRePya8oIdzJJp/AaDgjn2P7YMQegoeez4vzDn75kVL1kU4v9JBJzm G/JiP0HcXu4P/GoVNZPuplTAOK4JkllrCxnQNDA9E5OBYdgyosj3MhIC+fZBpXfg8849 85PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=vl+XwBJSxktkEKcLGw4RsqO2UmQPic9hb7e5HzAOgwA=; b=avuIe8LxFBJ3uhP2/0B2tLRr4QuzNVfUPfxH1DVqp8QDPow2fUcdUnFZT5FZS2SP5H Y8QFmC+si3Fpa0HEkQEDv0WYATjj007aMKRnxeEmBU3X4AXA+GCA3V5D7mEl6anToxvc gzpfOeTVChUOlBUbv8TI1Qv900BTJDsut2YrRKFLw5OKg1R27G4TDSChA9niI46hugqG o35iu8bPZlxdiQAiB+j+zRo+3sCnv7hw/MPsJfE2kJ+bCbNWTNY/kB+ueN+s6PLVvxzE OBll4cEKUOwlN9pI4W/VcXNLsVbN18B6EI8+63GygdrskCR1Dv2MtAhU7O4prgBlqO6L 4a+g== X-Gm-Message-State: AG10YOQ5yjW1yUkDKLH3l7zhK0PsYLnrFod89VQBBoRQKxszMwIXMGpnWV96nTqoC+fsxmYnh5wFmZVcVPGvuA== MIME-Version: 1.0 X-Received: by 10.107.149.18 with SMTP id x18mr3951569iod.170.1455290480834; Fri, 12 Feb 2016 07:21:20 -0800 (PST) Received: by 10.50.31.169 with HTTP; Fri, 12 Feb 2016 07:21:20 -0800 (PST) In-Reply-To: <56BDF6FC.1020309@gmail.com> References: <38.31.07203.2EB94B65@pb1.pair.com> <8E.1A.36326.338F8B65@pb1.pair.com> <56BDEBC8.4090806@gmail.com> <56BDF26B.8030301@gmail.com> <56BDF6FC.1020309@gmail.com> Date: Fri, 12 Feb 2016 17:21:20 +0200 Message-ID: To: Rowan Collins Cc: internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC][VOTE] Allow specifying keys in list() From: ua.san.alex@gmail.com ("S.A.N") 2016-02-12 17:15 GMT+02:00 Rowan Collins : > S.A.N wrote on 12/02/2016 15:13: >> >> But is also necessary and the function or operator like >> object_assign($target, ...$sources) > > > Like I say, for that kind of purpose, I'd just use an array, which already > has the facilities for working with arbitrary keys. But I know some people > think $foo->bar "looks prettier" than $foo['bar'], and make big trees of > stdClass objects, so maybe it's a matter of taste. It's not just a matter of taste, the object is always passed by reference, an array is copied when you change, object literal syntax like JSON, sorely lacking in PHP. Probably more correct to focus on the implementation of object literal syntax. Thank.