Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99675 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8569 invoked from network); 29 Jun 2017 09:25:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jun 2017 09:25:57 -0000 Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.41 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 74.125.82.41 mail-wm0-f41.google.com Received: from [74.125.82.41] ([74.125.82.41:38906] helo=mail-wm0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 29/C9-07609-4A7C4595 for ; Thu, 29 Jun 2017 05:25:56 -0400 Received: by mail-wm0-f41.google.com with SMTP id b184so7678327wme.1 for ; Thu, 29 Jun 2017 02:25:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=uvet8DcbxoOCqIvbdpDUwRG5+2tg/X1z6zHTWS+ak3s=; b=YwAFoE5K1mlPl/vvP3UAdj2QE2P3m+LPtUcE09hybhHk7HuMZYy6u26TTHw6Bs/FgT F1ykgeyyflH9Fu80QcRTyAG8my47wEanh6OXJm/SCXUWQsQP0Dcfj6qX8DOU6qVM4+fr YE1fEVGVW7cgqIHRm68Sq0w6Pv29VYvIR3TfJ1qdgWFcHzI1wa7zY5GQQEUMBwbuQZRs YEowNlehqtYA3gFfNGNazYoKQeA9Kd+ZSM6bimke+DnogvhaghZA/YGsh5p0iXVN3ddA bBZ/n1/ILGmnGg8I3+9JbEJsxwUF21hCd6hgCoSip0hQh8N+Auro/tSe/Ix8971ne8Nz vtCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=uvet8DcbxoOCqIvbdpDUwRG5+2tg/X1z6zHTWS+ak3s=; b=XKouINg2pp0gmuoERj5hFx+3G7ky4Lc5rRJkBDMFnyQcYwn1MdgDjFye9GDzlcTx9x PAsgD2RAE/KScRRVgLehLkeIt1X32fbIVlxxDckRZ5aAkDMRMOVT8c71uV06mDG9v8lz ZvLNMB4wFwcvqk+gtBvNtwewvETr8vb26qAvnVAU3wBdh0WW1T0fDRxsx6jCMfB2KIxl ooAjjkCBRmxcVpeQ9BJM8TQYpVW4dUwyTarRdTpRjXmV/GwpoYcdEEJLWJKTr00vnfUg HVFvKy7xOQ6LKYc5uP0d5IaOppIeStO7iDX9hWWiwLQqZzPiOCqmuRrf6tSYT5MlnSrh bt/g== X-Gm-Message-State: AKS2vOw/O5UA7TOO4paSym2ODfN4DBWB3nNTmnJfUtNrGyeTmjhYmB8n jbehAl1aw4T6ZAjTRVw9rdXVyZVTDUkwCPY= X-Received: by 10.28.140.194 with SMTP id o185mr1177934wmd.87.1498728353156; Thu, 29 Jun 2017 02:25:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.161.155 with HTTP; Thu, 29 Jun 2017 02:25:32 -0700 (PDT) In-Reply-To: <54e9e9f4-1fda-d7db-61a4-2a1574005a79@rhsoft.net> References: <54e9e9f4-1fda-d7db-61a4-2a1574005a79@rhsoft.net> Date: Thu, 29 Jun 2017 11:25:32 +0200 Message-ID: To: "lists@rhsoft.net" Cc: PHP Internals List Content-Type: multipart/alternative; boundary="001a114694b61ad6ae055315e35f" Subject: Re: [PHP-DEV] Final variables From: ocramius@gmail.com (Marco Pivetta) --001a114694b61ad6ae055315e35f Content-Type: text/plain; charset="UTF-8" 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 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). Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --001a114694b61ad6ae055315e35f--