Hey Jordan,



On Tue, Jan 4, 2022 at 3:23 AM Jordan LeDoux <jordan.led...@gmail.com>
wrote:

> > But why shouldn't it be `==`... these are valid use cases for a
> comparison; equally, vector additions ($vector1 + $vector2) are quite
> commonplace in mathematics
> - Source: https://twitter.com/Mark_Baker/status/1478131480383606787
>
> Marco's response to the person who maintains the literal largest complex
> mathematics library in the entire language was:
>
> > Yeah, so use matlab?
>
> This is what I'm struggling with. I am seeing a lot of things here that
> sound an awful lot like "that's not *my* use case, so no". That isn't how
> you design the language. Nikita's objection to the syntax is much easier
> for me to understand, because it is based on *language design*.
>
> Mathematics isn't something that is never used or never needed in PHP. The
> idea that I need to justify this statement is somewhat alarming.
>

I know you're picking on details here, but believe me, I'm serious when I'm
saying "use matlab".

In fact, I did work on financial products where (from Java PHP and Python)
we used the MATLAB Compiler to create binaries and dynamic libraries, which
would then do the heavy lifting around the financial models that were in
use.

> Likewise, I have libraries for Matrix and Complex Numbers, where this
> would be an incredibly useful addition.... a similar RFC using magic was
> proposed 6 years ago, and sadly never made it :-( I hope this time it is
> accepted, especially as a new keyword feels better than magic
> - Source: https://twitter.com/Mark_Baker/status/1477957056464359427
>
> The libraries that Mark is referring to, markbaker/matrix and
> markbaker/complex, have over 105 million installs combined on packagist.
> (Source: https://packagist.org/?query=markbaker )
>

As for the install count of markbaker/matrix (which, by the way, is an
excellent library), please do keep in mind that those are **directly**
coupled with phpoffice/phpspreadsheet (
https://packagist.org/packages/phpoffice/phpspreadsheet ). In fact, all OSS
dependents of this library are just forks of phpspreadsheets:
https://packagist.org/packages/markbaker/matrix/dependents?order_by=downloads&page=1

This absolutely is not to diminish Mark's work, which is stellar (and
frankly, I told him multiple times that he should just get paid for it,
since spreadsheets run the frikken world), but to show that this is indeed
a niche use-case.

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

Reply via email to