Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71350 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33161 invoked from network); 20 Jan 2014 20:59:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2014 20:59:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.192.182 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.192.182 mail-pd0-f182.google.com Received: from [209.85.192.182] ([209.85.192.182:62974] helo=mail-pd0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/B9-02192-C1E8DD25 for ; Mon, 20 Jan 2014 15:59:08 -0500 Received: by mail-pd0-f182.google.com with SMTP id v10so7343854pde.27 for ; Mon, 20 Jan 2014 12:59:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=RNVAaZ6vJtiD78+1Njq4r3b9A8iujOiaDQebBS6smF8=; b=aV/FRn6U/pvGYEI0L5O8WI6nBJNAraWUT6Y60ZDQhUfR0snJDbjT5EzZYvow6XbnAK Djdu24HzSneYFgIYaPkPiUtsMb0tvXQK3JsMR79gYK2G79jv3zat+qRp9gtmNjMQBqk9 3S8xLaK9nRMIiYN8UGNiTYC63FHmEVPncfTrqDQ/6ubnkICq5rA+ty+1ubi9N6S2JF7P N0/pyI5STDDMqk0ogcMSqu1CPtB1cEvzEWTW7Kjllib+FO6Z7hj2HKLId2GHPXnx7Mhp Uc7m/52NOZX1B1tRiV1LxkTMaYsKGZkMTS0Uu0+XdtXVABdh6XRAzBwpdTblnQRGSjBW 2JKQ== X-Gm-Message-State: ALoCoQnmK9zaE8btB15/Wo7B8GKaxIXGw0Th1GFxiBIViTfipCEWPLSxJyS4HJC8SkRDca3hf7yw MIME-Version: 1.0 X-Received: by 10.68.196.226 with SMTP id ip2mr19606612pbc.106.1390251545491; Mon, 20 Jan 2014 12:59:05 -0800 (PST) Sender: php@golemon.com Received: by 10.70.77.164 with HTTP; Mon, 20 Jan 2014 12:59:05 -0800 (PST) X-Originating-IP: [2001:470:1f09:2fa:22c9:d0ff:fe87:295b] In-Reply-To: <52DD8D15.7000407@sugarcrm.com> References: <0B.B1.24763.139B7D25@pb1.pair.com> <002001cf12da$2bfbda90$83f38fb0$@tutteli.ch> <52DCA3E7.80602@lerdorf.com> <52DCED71.3020207@pthreads.org> <006301cf15f5$22f8df60$68ea9e20$@tutteli.ch> <52DD8D15.7000407@sugarcrm.com> Date: Mon, 20 Jan 2014 12:59:05 -0800 X-Google-Sender-Auth: p0VY4wBlGa-heY7tHPgnN5v0Mgs Message-ID: To: Stas Malyshev Cc: Philip Sturgeon , Philip Sturgeon , Robert Stoll , Joe Watkins , "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Introducing "Array Of" RFC From: pollita@php.net (Sara Golemon) >> ArrayOf: "I would like hammers in a bag." >> Generics: "I would like a bag of hammers." > > Generics are more like "I would like a 100lb to 120lb bag of hammers > with handles made of wood grown in equatorial Africa between 1980 and > 1985, not cut down during national holidays in Brazil and provided all > workers were paid the fair wage, while the heads must be made of steel > approved by German Council of Steel Manufacturers, and the assembly must > have been performed in a country that signed the convention about the > ethical treatment of animals". You'd want arrays of arrays of foo, and > arrays that have keys of foo and values be arrays of tuples of bar and > baz, etc. etc. > I can definitely see a contract that would require hammers exactly like > that, or even with more precise list of conditions, but do we want this > in the PHP language itself (as opposed to delegating it to the > user/library code)? I personally don't really want it as a part of the > language. I think keeping language small(ish) and simple has its value. > I can only assume you're using sarcasm to highlight the ridiculousness of that argument, because I know you, and you're not NEARLY that much of an idiot. -Sara