Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80397 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54768 invoked from network); 12 Jan 2015 01:06:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2015 01:06:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.199 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.199 imap11-2.ox.privateemail.com Received: from [192.64.116.199] ([192.64.116.199:37728] helo=imap11-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 16/F3-34383-72E13B45 for ; Sun, 11 Jan 2015 20:06:48 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 2C1A88800E5; Sun, 11 Jan 2015 20:06:45 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap11.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap11.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id FVt6qXSAqFiE; Sun, 11 Jan 2015 20:06:44 -0500 (EST) Received: from oa-res-26-240.wireless.abdn.ac.uk (oa-res-26-240.wireless.abdn.ac.uk [137.50.26.240]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 060F98800E6; Sun, 11 Jan 2015 20:06:43 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: Date: Mon, 12 Jan 2015 01:06:41 +0000 Cc: Jordi Boggiano , PHP Internals List Content-Transfer-Encoding: quoted-printable Message-ID: <786231F5-DE56-4E32-8251-CD6CD4FE12DB@ajf.me> References: <54B30DB9.3000003@seld.be> <76B8D342-43E7-42E6-AD82-FCF7C5CA8658@ajf.me> To: Yasuo Ohgaki X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] rand(), mt_rand() and limits From: ajf@ajf.me (Andrea Faulds) Hi Yasuo, > On 12 Jan 2015, at 00:55, Yasuo Ohgaki wrote: >=20 > It works, but I prefer to have procedural API also (and OO API if it = is needed.)=20 > I like multi paradigm programming language. I don=E2=80=99t see the point of a =E2=80=9Cprocedural API=E2=80=9D = here, it=E2=80=99d just be a set of thin wrappers around the OOP API. Multi-paradigm means actually providing different approaches. Every time = PHP has had both a =E2=80=9Cprocedural=E2=80=9D and =E2=80=9COOP=E2=80=9D = API so far, it=E2=80=99s been nothing of the sort, the =E2=80=9Cprocedural= =E2=80=9D API has been the OOP one in disguise. There is zero functional = difference between $foo->bar($baz, $qux); and foo_bar($foo, $baz, $qux); = and we should stop pretending there is one. Are people seriously scared off by the syntax of =E2=80=9COOP=E2=80=9D = APIs or something? I just don=E2=80=99t get it. Surely it is not hard to = explain that mysql_query and $mysqli->query are exactly the same thing?! > BTW, difference between 32bit and 64bit platforms would not be a = problem > as long as it is documented. It=E2=80=99s not necessarily a =E2=80=9Cproblem=E2=80=9D, but I don=E2=80=99= t see why 64-bit integers shouldn=E2=80=99t be properly supported on = 64-bit systems. Thanks. -- Andrea Faulds http://ajf.me/