On Sunday, 24 September 2017 at 23:59:59 UTC, jmh530 wrote:
On Sunday, 24 September 2017 at 22:33:48 UTC, H. S. Teoh wrote:
With UFCS, you have the slightly nicer notation a.dot(b) and
a.cross(b).
T
Below is a link to the operators in Matlab and associated
functions. mir can include all of those functions, but not all
of them can be implemented as operators (because D doesn't have
things like .*). I think it would be annoying to constantly
have to write plus or mtimes in writing formulas for a linear
algebra library.
https://www.mathworks.com/help/matlab/matlab_prog/matlab-operators-and-special-characters.html
There's nothing stopping someone writing a DIP to include `@`
(and possibly `#`) as overloadable binary operators. All other
characters on the standard keyboard are used I think.