Req #13756 [Csd]: exponential ** operator
| From: | nikic@php.net | Date: | Thu, 28 Feb 2013 17:08:18 +0000 |
| Subject: | Req #13756 [Csd]: exponential ** operator | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-177468@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=13756&edit=1
ID: 13756
Updated by: nikic@php.net
Reported by: sander@php.net
Summary: exponential ** operator
Status: Closed
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: n/a
PHP Version: 4.0.6
-Assigned To:
+Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
@tom Exponentiation is an operation that is used too little (in PHP) to warrant adding an extra
operator for it. Doing a random guess, I'd think it's used even less than the bitwise
operators (and those are used quite rarely in PHP...)
Previous Comments:
------------------------------------------------------------------------
[2013-02-28 11:17:23] tom at r dot je
Indeed! Seems very despotic just to say "No. Deal with it" with no further
discussion or explanation why.
------------------------------------------------------------------------
[2012-07-08 23:31:23] hello at wesalvaro dot com
le why not?
------------------------------------------------------------------------
[2002-04-27 16:17:03] jimw@php.net
not going to happen. just suck it up and use pow().
------------------------------------------------------------------------
[2001-10-19 18:51:47] jeroen@php.net
I proposed that earlier (along with ^^) [ZendEnginge ML, june 27th & july 3rd].
Anyway, I think it should be added, there is simply no power operator now, and pow() is both a bit
bugly and overloaded (both ^^ and ** at the same time).
------------------------------------------------------------------------
[2001-10-19 11:24:28] hholzgra@php.net
** is Pascal, not C
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=13756
--
Edit this bug report at https://bugs.php.net/bug.php?id=13756&edit=1