Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21721 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32347 invoked by uid 1010); 29 Jan 2006 20:30:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 32330 invoked from network); 29 Jan 2006 20:30:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jan 2006 20:30:10 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:33686] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id FE/33-33179-1D52DD34 for ; Sun, 29 Jan 2006 15:30:09 -0500 Received: from [192.168.1.3] (dslb-084-063-005-144.pools.arcor-ip.net [84.63.5.144]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 4C84935C1E3; Sun, 29 Jan 2006 21:30:06 +0100 (CET) Date: Sun, 29 Jan 2006 21:32:21 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1556659099.20060129213221@marcus-boerger.de> To: James Crane Cc: php internals In-Reply-To: <2a8d4a710601291221q186165adwe780ca5f3ee253@mail.gmail.com> References: <2a8d4a710601282225g4f06a6c7v59edb232eb9584a4@mail.gmail.com> <43DC7227.4070600@dealnews.com> <23b513280601290844h1c58f798qba32ed20848f2da2@mail.gmail.com> <2a8d4a710601291032g3e4b3b93i3f3edc5b19c66dc8@mail.gmail.com> <23b513280601291046v24720f2bl28b0a88fadcc90be@mail.gmail.com> <2a8d4a710601291220i5d33202ewabe9337d40043299@mail.gmail.com> <2a8d4a710601291221q186165adwe780ca5f3ee253@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP Array Literals From: helly@php.net (Marcus Boerger) Hello James, you missed recently emerged $it = betty() here or did i get confused now? Sunday, January 29, 2006, 9:21:20 PM, you wrote: > Then why don't we have these: > $i = integer(5); > $f = float(4.5); > $s = string("foo"); > And what about classes? It's slightly different, what with it being a > definition rather than a specific literal value, but it produces a > definition, pseudo value if you will, so why not have: > class("MyClass", array("method", array("arguments"), "method body here")); > Of course, that woudln't make sense. We, instead, use appropriate syntax: > class MyClass { > public function method($arguments) { > // method body here > } > } > Suitable, logical, appropriate code. To me, 'array()' just seems on > the verge of being (but not totally) inappropriate. > M.T. Best regards, Marcus