Re: rand(), mt_rand() and limits
| From: | Andrea Faulds | Date: | Mon, 12 Jan 2015 01:06:41 +0000 |
| Subject: | Re: rand(), mt_rand() and limits | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80397@lists.php.net to get a copy of this message | ||
Hi Yasuo,
> On 12 Jan 2015, at 00:55, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote:
>
> It works, but I prefer to have procedural API also (and OO API if it is needed.)
> I like multi paradigm programming language.
I don’t see the point of a “procedural API” here, it’d 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
“procedural” and “OOP” API so far, it’s been nothing of the sort, the “procedural” 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 “OOP” APIs or something? I just don’t 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’s not necessarily a “problem”, but I don’t see why 64-bit integers shouldn’t be
properly supported on 64-bit systems.
Thanks.
--
Andrea Faulds
http://ajf.me/