Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92381 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20761 invoked from network); 17 Apr 2016 12:19:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2016 12:19:54 -0000 Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 217.147.176.214 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 217.147.176.214 mail4-2.serversure.net Linux 2.6 Received: from [217.147.176.214] ([217.147.176.214:33252] helo=mail4.serversure.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/1A-32052-96F73175 for ; Sun, 17 Apr 2016 08:19:54 -0400 Received: (qmail 24750 invoked by uid 89); 17 Apr 2016 12:19:50 -0000 Received: by simscan 1.3.1 ppid: 24743, pid: 24746, t: 0.0612s scanners: attach: 1.3.1 clamav: 0.96/m:52/d:10677 Received: from unknown (HELO ?10.0.0.7?) (lester@rainbowdigitalmedia.org.uk@81.153.92.101) by mail4.serversure.net with ESMTPA; 17 Apr 2016 12:19:50 -0000 To: internals@lists.php.net References: <57136573.7070802@fleshgrinder.com> Message-ID: <57137F66.3080608@lsces.co.uk> Date: Sun, 17 Apr 2016 13:19:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <57136573.7070802@fleshgrinder.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Improving PHP's type system From: lester@lsces.co.uk (Lester Caine) On 17/04/16 11:29, Fleshgrinder wrote: > Especially since its not needed at all. HHVM already solved most of > these issues extremely nicely: > > - https://docs.hhvm.com/hack/types/type-system > - https://docs.hhvm.com/hack/type-aliases/introduction > - https://docs.hhvm.com/hack/shapes/introduction > > We want the same but do not want to copy?!? The simple answer NO If that is how you think it should be done, then use it. On my platform, 'point' is a number of floating point numbers depending on your geometry. And shapes use those points. So that area of 'hack' is of little use to any mapping system, and trying to shoehorn existing code to fit is 'pointless' ... It's the fact that many of these problems HAVE been solved without resorting to overloading PHP with a subset that does not provide a complete solution to the alleged problems that is the reall problem here. Having to re-write libraries because some one else thinks the basic rules are wrong and need fixing :( -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk