Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99676 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10297 invoked from network); 29 Jun 2017 09:33:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jun 2017 09:33:42 -0000 Authentication-Results: pb1.pair.com header.from=lists@rhsoft.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=lists@rhsoft.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain rhsoft.net designates 91.118.73.15 as permitted sender) X-PHP-List-Original-Sender: lists@rhsoft.net X-Host-Fingerprint: 91.118.73.15 mail.thelounge.net Received: from [91.118.73.15] ([91.118.73.15:12199] helo=mail.thelounge.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5B/1A-07609-479C4595 for ; Thu, 29 Jun 2017 05:33:42 -0400 Received: from srv-rhsoft.rhsoft.net (Authenticated sender: h.reindl@thelounge.net) by mail.thelounge.net (THELOUNGE MTA) with ESMTPSA id 3wyvc10jH5zXN2 for ; Thu, 29 Jun 2017 11:33:37 +0200 (CEST) To: PHP Internals List References: <54e9e9f4-1fda-d7db-61a4-2a1574005a79@rhsoft.net> Message-ID: <455c5e8b-ba8f-a070-39a2-37f8ce07d111@rhsoft.net> Date: Thu, 29 Jun 2017 11:33:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-CH Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Final variables From: lists@rhsoft.net ("lists@rhsoft.net") Am 29.06.2017 um 11:25 schrieb Marco Pivetta: > On Thu, Jun 29, 2017 at 11:19 AM, lists@rhsoft.net > > > wrote: > > in other languages like Visual Basic constants are fast, in PHP they > are slow, both in define and access > > > Two things here: > > 1. don't ever consider visual basic for any comparison of any sort: > it's basically (ha!) the worst example of a programming language that I > can think of before malborge stop it - many people say the same about PHP > 2. speed is not relevant in this scope: program correctness is. Final > properties would allow switching value object representations from > accessor (getter) based logic (extremely slow) to public property based > (less overhead, also in writing) in which scope is speed not relevant? depends on your application, in my scopes i try to avoid expensive opcodes and useless function calls, program correctness is a completly different thing and it's not one or the other but both