Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66984 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89410 invoked from network); 5 Apr 2013 13:30:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Apr 2013 13:30:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=richard.bradley@softwire.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=Richard.Bradley@softwire.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain softwire.com from 91.220.42.220 cause and error) X-PHP-List-Original-Sender: richard.bradley@softwire.com X-Host-Fingerprint: 91.220.42.220 eu-smtp-2.mimecast.com Linux 2.6 Received: from [91.220.42.220] ([91.220.42.220:5454] helo=eu-smtp-1.mimecast.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 72/B0-20511-8D1DE515 for ; Fri, 05 Apr 2013 08:30:01 -0500 Received: from smtp.softwire.com (217.20.22.70 [217.20.22.70]) (Using TLS) by uk-mta-5.uk.mimecast.lan; Fri, 05 Apr 2013 14:29:56 +0100 Received: from VEXCHANGE10.zoo.lan ([169.254.1.114]) by VEXCHANGE10.zoo.lan ([169.254.1.114]) with mapi id 14.02.0342.003; Fri, 5 Apr 2013 14:29:55 +0100 To: Rasmus Schultz CC: Benjamin Eberlei , PHP internals Thread-Topic: [PHP-DEV] a couple of thoughts on the DateTime type debate Thread-Index: AQHOMYgPp7zb/cY3OEiTz4NCWsvyY5jHQ2VggABBCQCAAANYAIAAFy4g Date: Fri, 5 Apr 2013 13:29:54 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.210.1.210] x-pp-processed: __PP2__318564c6-eb00-4118-ba4c-be920aac5003 MIME-Version: 1.0 X-MC-Unique: d28569ab-96e8-42b8-ba24-03ccef592370-1 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Subject: RE: [PHP-DEV] a couple of thoughts on the DateTime type debate From: Richard.Bradley@softwire.com (Richard Bradley) > On Fri, Apr 5, 2013 at 8:50 AM, Rasmus Schultz wrote= : > > See the "Structs Tutorial" at msdn for a brief summary of structs in C#= - http://msdn.microsoft.com/en-us/library/aa288471(v=3Dvs.71).aspx > > Looking at that code sample, yes - that is more or less exactly what I ha= d in mind. > > I don't know C very well, and I certainly don't know the PHP codebase > very well, but do you think it's feasible to internally piggyback structs= on arrays? Are you asking me, or the list? If me: I don't know. I suspect it would be, but I think Joe Watkins nailed = it in his recent email on this thread: "This seems like a crazy conversation to me, not only is it crazy, it's a= waste of time; I don't see any of the people able to implement it actually implementing= it, and I don't see a vote going in favour of the idea if there were an implementation." I'm not going to implement it. Will you be implementing it? I suspect not, = as you said "I don't know C very well". I think it does look like a nice syntax extension, but I don't think it'll = end up in PHP. I only waded in to correct someone who said that structs in C# don't have m= ethods :-) Richard Bradley Tel : 020 7485 7500 ext 3230 | Fax : 020 7485 7575 softwire Sunday Times Best Small Companies 2012 - 6th in the UK Web : www.softwire.com | Addr : 325 Highgate Studios, 53-79 Highgate Road, = London NW5 1TL Softwire Technology Limited. Registered in England no. 3824658. Registered = Office : 13 Station Road, London N3 2SB