>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