Newsgroups: php.internals
Path: news.php.net
Xref: news.php.net php.internals:93831
Return-Path: <codekestrel@googlemail.com>
Mailing-List: contact internals-help@lists.php.net; run by ezmlm
Delivered-To: mailing list internals@lists.php.net
Received: (qmail 63163 invoked from network); 6 Jun 2016 09:23:52 -0000
Received: from unknown (HELO lists.php.net) (127.0.0.1)
  by localhost with SMTP; 6 Jun 2016 09:23:52 -0000
Authentication-Results: pb1.pair.com smtp.mail=codekestrel@googlemail.com; spf=pass; sender-id=pass
Authentication-Results: pb1.pair.com header.from=codekestrel@googlemail.com; sender-id=pass
Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 74.125.82.44 as permitted sender)
X-PHP-List-Original-Sender: codekestrel@googlemail.com
X-Host-Fingerprint: 74.125.82.44 mail-wm0-f44.google.com  
Received: from [74.125.82.44] ([74.125.82.44:35582] helo=mail-wm0-f44.google.com)
	by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP
	id 5C/20-60933-72145575 for <internals@lists.php.net>; Mon, 06 Jun 2016 05:23:52 -0400
Received: by mail-wm0-f44.google.com with SMTP id c74so36137081wme.0
        for <internals@lists.php.net>; Mon, 06 Jun 2016 02:23:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlemail.com; s=20120113;
        h=mime-version:date:message-id:subject:from:to;
        bh=UYU2VoCOn+YwvOJ77ECK6ZY0xRIh5Rix6u2oBga5mNQ=;
        b=qOIfLLckLnoduMIB4tcuNu2+qRdJRGYItCpAQKlW98DpobNS/5R/qoLnKmwNU93hlD
         NIY+Njt5ETL3PADAYOE3ghi7Y0SHSTAhCfmCeqH14sVkOpFx5QCi+eGbZghGztLGdWM1
         zrM1C+RAdB8S0/OP8Tki+XRiqe+e00wJP8ldnwn+ekZMLjFg/x1LjGaZOuJETl/TI8kn
         vPBOpBLecKIHkXHSG1uP/cP69cACROMmwqTmwEgopBfqsyjo8FAPJCT7AISxv90jxvRQ
         pe8f1X08oFLTUt1WNDwEvuJQbGl9OUwN/PQ7hr88KHoiY4/7aNL0IzobeR4zX/iiNTsK
         teHA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:date:message-id:subject:from:to;
        bh=UYU2VoCOn+YwvOJ77ECK6ZY0xRIh5Rix6u2oBga5mNQ=;
        b=O4P45S9xIUiwiSXIwZ6cwus15LnE/TjMm/R/sTBCodBBIKZpplwKCk2xX92jbeb0YM
         iwfOLPYMizfT1WLaydtPKJktTTOvTwsRqY/il4iV2m15EuWREEpzt/NWNRr1u6auQuH5
         wjN3Q1Xl+VOUT1PhQpuGNCoOPBL5QY8kIW5i4da2nNN4LEUD7n6mjhdsMhQ7ou27YGKJ
         C37IxmG3mnzZ6go81DhAt24aK+fyxXB/flq4OgyMX/FeKjgs8p9LIXvngkcQOI9YxXGD
         5DSGcZGIX+bNAYrwxTXcNppM3spcRWMdtkcBqz3HCtxAsWXKjbcXYYXCbbTPbxMgM8tU
         RCHQ==
X-Gm-Message-State: ALyK8tJ5tQy+FDLm8em4agpKJsHIXY4JRe99Xuy/fI1Dytllo/CcvpLojrb03EJp8Tjudtr7+AB0eHWDscVmGg==
MIME-Version: 1.0
X-Received: by 10.194.116.69 with SMTP id ju5mr14506801wjb.101.1465205028780;
 Mon, 06 Jun 2016 02:23:48 -0700 (PDT)
Received: by 10.28.130.2 with HTTP; Mon, 6 Jun 2016 02:23:48 -0700 (PDT)
Received: by 10.28.130.2 with HTTP; Mon, 6 Jun 2016 02:23:48 -0700 (PDT)
Date: Mon, 6 Jun 2016 10:23:48 +0100
Message-ID: <CAFKaYMq2cfNyhbfmAeaC8cetfnN9cvO_wy+EZVgNkZwAGju3JQ@mail.gmail.com>
To: PHP internals <internals@lists.php.net>
Content-Type: multipart/alternative; boundary=001a1130ccf0437f74053498a17c
Subject: Opinion on function/method name overloading
From: codekestrel@googlemail.com (Dominic Grostate)

--001a1130ccf0437f74053498a17c
Content-Type: text/plain; charset=UTF-8

Hi,

As I understand it, using Java-like function overloading in PHP is
undesirable due to hindrance in readability.

However I'd like to get an opinion on whether it would be received more
favourably if it could provide an actual performance enhancement over hand
managed implementation's of detecting argument differences with variadic
and func_get_args.

On to a more subjective argument, "naming things" is hard, and I think many
people would appreciate being able to reuse function/method names without
sacrificing type safety.

Any thoughts?

--001a1130ccf0437f74053498a17c--