Re: internals Digest 23 Nov 2013 16:10:48 -0000 Issue 3139

From: Date: Sat, 23 Nov 2013 19:38:16 +0000
Subject: Re: internals Digest 23 Nov 2013 16:10:48 -0000 Issue 3139
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-70330@lists.php.net to get a copy of this message
>It seems VB, VBScript (ASP), and VB.NET's exponentiation op is >left-associative. >Together, those account for a terrific amount of code in the wild, >well outstripping the lines of production code -- if not the >associated developer skills -- of many of your examples. >Anyway, my take is it's unnecessary to have anything but pow() if it's >taken this long for this to be brought up. >-- Sandy That's interesting. Most languages implement ** according to standard math rules. VB did not follow this standard (they just did left to right). What your suggest is that PHP implement it like VB so then most web languages (code) will be consistent, even if different than standard math (read: generate the wrong answer). Why should we follow in the footsteps of Microsoft's mistakes? Is trying to win the hearts of VB programmers that important? Given that COBOL, FORTRAN, PERL and PYTHON all do it right associative, I expect that total lines of code is on the right associative side if you count all code and not just web sites (the code bases for COBOL, FORTRAN and PERL are giant). Walter Walter

« previous php.internals (#70330) next »