Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97537 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71519 invoked from network); 6 Jan 2017 18:07:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jan 2017 18:07:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=netmo.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=netmo.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.43 as permitted sender) X-PHP-List-Original-Sender: netmo.php@gmail.com X-Host-Fingerprint: 209.85.215.43 mail-lf0-f43.google.com Received: from [209.85.215.43] ([209.85.215.43:36124] helo=mail-lf0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3A/18-23307-ACCDF685 for ; Fri, 06 Jan 2017 13:07:08 -0500 Received: by mail-lf0-f43.google.com with SMTP id o140so3688055lff.3 for ; Fri, 06 Jan 2017 10:07:06 -0800 (PST) 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=qBbnB7niFWAA7x4s2z9e+h+AriR5+2Q4u7QP5GXgDno=; b=sMH7l2ovm3KraX3mXlQR+RsRAarAK9E79qGHS+i5ToMpAw3nTbIHId79HasYsYxtUh 4psqzEY6vrHmKCwcqdQl/nHrYhl7gpqHs6dS2NeoJC2ohHI5PwfKfQA12/RhGMZk8kMA CeQBhZV0T8rF68LMBdxvGrZbZwvMXYL+d9hpwFBl15aEGTBX0j4ZXDHztVfL9plc/JEr qOQKzF4UOou1dv/eytzV/NfaGA2lCTicBBum3L2SmC+LT1pmO+F8mMJJ0Waihx915oYg GDiENfuEOk9qDJBu1j0EwCqrJMSIIRYR+oL7rcj0lmrCipe0jXyvn34QKxX5EfQstsR3 snng== 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=qBbnB7niFWAA7x4s2z9e+h+AriR5+2Q4u7QP5GXgDno=; b=qSU+I3Z9czQ7f7AsHSyXLmp7/I0GR+gz4zu1KDJw7bZynboEeO1XlIM5zFe9l+MYuU fAlAiiuusieiDKEDwMHsPIOnkbSSeT/blIc0d5Su7VrRKjc8hqJpU6rhBtTcwh2FAOs4 +fffEw/0lkgaVLZLDP3OKm2+1JXs0c2bJTuBGbkcvfuYL5JWjCDc1nbMEukSfSXQ40Ew zUedKaozSvh8s51YI/z6Za3D5/Ee7BZfoA23YfqiIW4DMIGZlCGITed4UQ6W6/6uMd84 JzV3lyYMd8odq4rHr+4vJc8K0tv3zdS1QC5anFV/5B4Zl2GkKlCsZbddYttRfJi8pJBD eGoQ== X-Gm-Message-State: AIkVDXIdKMa4RVgm7aD/Ixm4qcXBkZpmkd4RkuUADGEvNth8LkvqVPx5hNdTbxfnrGqpyz9Rf5OrM9sJcqWDjg== X-Received: by 10.25.34.18 with SMTP id i18mr22822672lfi.125.1483726023089; Fri, 06 Jan 2017 10:07:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.12.102 with HTTP; Fri, 6 Jan 2017 10:07:02 -0800 (PST) In-Reply-To: References: Date: Fri, 6 Jan 2017 19:07:02 +0100 Message-ID: To: Marco Pivetta Cc: PHP Internals List Content-Type: multipart/alternative; boundary=001a113aa7908ce553054570e2bc Subject: Re: [PHP-DEV][RFC][VOTE] Throwable error code's type generalization From: netmo.php@gmail.com (Wes) --001a113aa7908ce553054570e2bc Content-Type: text/plain; charset=UTF-8 Deprecating it is also a lot of effort for very little improvement. People would be forced to fix all their constructors calls just to skip the parameter. Personally I would be very annoyed by such a pointless change. Plus those that actually do use the code will be forced eventually to reimplement the code thing themselves, they'll end up having a base class for this, and other people will do the same just to maintain compatibility with older PHPs, and then even more people will do the same, human sacrifice, dogs and cats living together... mass hysteria. I think this is absolutely unnecessary, as you can simply not using "getCode()" if you don't need it, and because adding a "0" in the parent::__construct(..., 0, ...) is not too much work. With this change we keep old code covered, *and* we enable people to use the field in more ways if they desire to. \o --001a113aa7908ce553054570e2bc--