Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112939 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 96710 invoked from network); 20 Jan 2021 16:34:38 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Jan 2021 16:34:38 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AC4841804F2 for ; Wed, 20 Jan 2021 08:14:37 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, 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-Virus: No X-Envelope-From: Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (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 ; Wed, 20 Jan 2021 08:14:37 -0800 (PST) Received: by mail-ed1-f50.google.com with SMTP id j13so2134133edp.2 for ; Wed, 20 Jan 2021 08:14:36 -0800 (PST) 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 :cc; bh=D7URP2A/dt1Ws65RZ3KvWLHQ0G7Jzp789jlb69im/wQ=; b=A0cl7tXZ7fqS4Yn/df76Hu6s01xpxofstCCHQSt2c0ztB5OfeVItY8OI5J9bJ58Gwf fh8jY7UbaN2bQxswJVFidBkz+wKgZnNEUUqXrHZhPEaFAEOOzQfv4/l8KRR5hO2MQb2z GimkI7OIe8mG/05uybb09Uzryr9uHBES3TjIYoL/eI519qwAhawHnBzy9mCoT4QgXswo h+DRVNi8cjTrLjdnYVVaDIU8dr0mPgbP17l25vV+zU0cqipvf4hcNZqh486bOAhcLPlz 3riu5k0AqOUz3PydNHkiNHYjJ/dUVBmzG+qx4PJ+aczJbs9kiJu5pekixRP2Qe2Fxerj dlhQ== 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:cc; bh=D7URP2A/dt1Ws65RZ3KvWLHQ0G7Jzp789jlb69im/wQ=; b=EtS1NsZZPnOoPITZpN1b8Lj/y6dbVIjlKn6wuGFizPnH3oQk7mrSbTywucboiDKMQ/ SRfzFD7BpCaxK40C/Dh6huFACuBmmIBhSRkyEGpCxaVexljT2HwGH1MYcVmSwzH0V2js c+xnMAbb7tzBejwm/L/9N94vKdcxz1vqcZjp6UdTyzoyHT0/EMicrs5bjv2zqPm/gqgT JniKPrXlL+/j3ZxclEWku+km6rLCmx0dMdMcfGlUmRfFNKHrIrZZacfY7M/Sr/Bb//Kz amsqdNvgkg/TrSMmgoBqGsu2w6EPkISUPGv4IwRFG+L2ZAZKCcx19EsIWUVvQwLFI+/g f2yg== X-Gm-Message-State: AOAM533k7uM+cW3DSLh3EhImYIiHpln0kIWZQ1iRSAL2/1Bb9FNkZZIS aPAJFpuGxeqPDC6WbSCzLY7qPg9IeR11QKiNjbg= X-Google-Smtp-Source: ABdhPJwzXMJOdytWREOMsLrKGCbEzXmHpS6+KV9EOuE9r3xtUfavZ8DX10lEmqbqi0IOUVTyr5l8XtTStWzkHiKKkKY= X-Received: by 2002:a50:8741:: with SMTP id 1mr7976599edv.349.1611159274376; Wed, 20 Jan 2021 08:14:34 -0800 (PST) MIME-Version: 1.0 References: <618b4a6e-0e12-0ac5-6cf9-facb16737632@gmail.com> In-Reply-To: <618b4a6e-0e12-0ac5-6cf9-facb16737632@gmail.com> Date: Wed, 20 Jan 2021 16:14:23 +0000 Message-ID: To: Dik Takken Cc: tyson andre , Nikita Popov , "internals@lists.php.net" Content-Type: multipart/alternative; boundary="00000000000039d15705b9574042" Subject: Re: [PHP-DEV] Proposal: short_var_export($value, bool $return=false, int $flags=0) From: tekiela246@gmail.com (Kamil Tekiela) --00000000000039d15705b9574042 Content-Type: text/plain; charset="UTF-8" > > I am considering to try and introduce a __repr() magic method that is > similar to the __repr__() method from Python. No more magic methods, please. We have too many already. As the intent of the resulting string is to obtain PHP code that will > construct the variable, another option might be: var_constructor(). Wouldn't this be extremely confusing given that we use the name constructor for OOP? --00000000000039d15705b9574042--