Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63582 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54412 invoked from network); 21 Oct 2012 12:46:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Oct 2012 12:46:12 -0000 Authentication-Results: pb1.pair.com header.from=devis@lucato.it; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=devis@oracolo.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain oracolo.com designates 209.85.216.42 as permitted sender) X-PHP-List-Original-Sender: devis@oracolo.com X-Host-Fingerprint: 209.85.216.42 mail-qa0-f42.google.com Received: from [209.85.216.42] ([209.85.216.42:44677] helo=mail-qa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4C/41-22055-19EE3805 for ; Sun, 21 Oct 2012 08:46:11 -0400 Received: by mail-qa0-f42.google.com with SMTP id t11so907010qaa.8 for ; Sun, 21 Oct 2012 05:46:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=XWYyMfdFcC8OjSnarYg0VCwSHdf/rR+a45Ct1bHPpKk=; b=lG7q6JJrZhsClx0vWkgCxfvqc8c89XaAP/Hea9k06ybLVrgc5xTPbErlaE1bwYGZOK Pth0BsqE3ITo7/+QVkecEtBE5NcPQqI5WURR8LfE0idEtkdkntWQdD6zmpv1QjGviukY uba9ZzeQ1f9hynEjAG93rr7D5/zgrpKjGHyesDrwsDZNHdwVJAK/JWGNXXvG2Ec8pc6C 4Ek7iBwQ8JsB17dsTAuEWTGQEAc8Jjgx/CwHgGbZvXpJAua0vgn38VX84ayMRNgRTNH+ LOE1kFL3NsssBNjKtV73zdp8mrbb4gD8CZ5ckhTThGzdV2GjrODP/rZPcw1HgfbdOgGq fDYw== Received: by 10.224.111.16 with SMTP id q16mr2959919qap.19.1350823566899; Sun, 21 Oct 2012 05:46:06 -0700 (PDT) Received: from mail-qc0-f170.google.com (mail-qc0-f170.google.com [209.85.216.170]) by mx.google.com with ESMTPS id cs3sm12765qab.10.2012.10.21.05.46.05 (version=SSLv3 cipher=OTHER); Sun, 21 Oct 2012 05:46:06 -0700 (PDT) Received: by mail-qc0-f170.google.com with SMTP id d42so1166915qca.29 for ; Sun, 21 Oct 2012 05:46:05 -0700 (PDT) Received: by 10.229.115.38 with SMTP id g38mr704975qcq.142.1350823565148; Sun, 21 Oct 2012 05:46:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.49.27.37 with HTTP; Sun, 21 Oct 2012 05:45:24 -0700 (PDT) In-Reply-To: References: <712F4499-949C-4C6F-A142-736A1B156189@gmail.com> Date: Sun, 21 Oct 2012 13:45:24 +0100 Message-ID: To: Alexey Zakhlestin Cc: Nikita , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=002354470268c1440204cc911ec4 X-Gm-Message-State: ALoCoQkNrTrfJOzPUSogCOWDRszyIpKXdbJkvvS0sC953SCUav7U7qYW8JdlmomlnROHgBn3HUVf Subject: Re: [PHP-DEV] Generics proposal From: devis@lucato.it (Devis Lucato) --002354470268c1440204cc911ec4 Content-Type: text/plain; charset=UTF-8 I see what you are trying to achieve, but I hope this will never make into PHP mainly for impact on readability. I'd like to quote Eric Armstrong, a passionate Java/Ruby dev: > I decry their very existence. They are the ultimate condemnation of static > type checking--because their very addition has virtually destroyed both the > readability and elegance of the language. > To make my case, let's start with a quasi-mathematical definition of "elegance". > In my view, elegance is a function of power and simplicity. Power is measured > by how much you can do. Simplicity is the inverse of the number of characters > it takes to achieve the result. So more power with fewer characters equals > "elegance" http://www.artima.com/weblogs/viewpost.jsp?thread=299081 Devis On 21 October 2012 12:55, Alexey Zakhlestin wrote: > > On 21.10.2012, at 0:59, Nikita wrote: > > > Hello, list. I want to propose generics. > > > So, what you think? > > I'm against having this in PHP. > > For IDEs, the better solution is to use generics-like syntax in docblocks. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --002354470268c1440204cc911ec4--