Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79346 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33846 invoked from network); 1 Dec 2014 17:58:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Dec 2014 17:58:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.180 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.214.180 mail-ob0-f180.google.com Received: from [209.85.214.180] ([209.85.214.180:54677] helo=mail-ob0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 14/10-32869-84CAC745 for ; Mon, 01 Dec 2014 12:58:32 -0500 Received: by mail-ob0-f180.google.com with SMTP id wp4so8183608obc.25 for ; Mon, 01 Dec 2014 09:58:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=esv3vtl6VedvY7qrVPR0xNv3QZOUd0+xALwCGK3/tyo=; b=Lz1mY+4hPo5n0wS2p67lqcwQU3Ne+Im8EceceGmlEKF4NjPRacKoWq0mcCBhHmV51p oNwr3uicrQStsbNn18aA7VvBCyp76IK1sbAMNMRSGs8hmUESWKSorCqmSaz4j80UIzVj VVdz/GKUvToykqtTuDLaSaMCF+7035gpVtMxP3AULb5wm4fRFCR14hSVvehL9Fdjo6a0 szyV+inkOhbbzoS/Va3MmVot/mmSOi3Ez6nrKpqTTnpET1/YaGQqrVfCgeKkjWxCve38 o9ayArB3WVjHkc1qZSXooMbntpi887TbgYguQjayvU8GGo3PtkY7bjIbC4tAhCh43qk5 wLfA== MIME-Version: 1.0 X-Received: by 10.202.187.66 with SMTP id l63mr34098889oif.13.1417456709782; Mon, 01 Dec 2014 09:58:29 -0800 (PST) Sender: morrison.levi@gmail.com Received: by 10.76.89.237 with HTTP; Mon, 1 Dec 2014 09:58:29 -0800 (PST) In-Reply-To: <547C991E.2070700@gmail.com> References: <003c01d00d6e$f4fd77c0$def86740$@tutteli.ch> <868FD3D8-4E80-46F4-872A-125D3FD8F40D@ajf.me> <547C991E.2070700@gmail.com> Date: Mon, 1 Dec 2014 10:58:29 -0700 X-Google-Sender-Auth: R43-veJmFRqrzGhSfN9Xf2_j7q0 Message-ID: To: Rowan Collins Cc: internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Static classes (Was Abstract final classes) From: levim@php.net (Levi Morrison) > The only thing missing is a standardised, enforced, annotation on the class > to declare that you are using this ability and instances will never be > created. Let's say a class has no members: what's the harm in instantiating it? Sure, it logically doesn't do anything useful, but is this user error such a big deal that we alter the language to disallow it?