Open
Description
There are a few different signs that can be used for multiplication: *
, \cdot
, and \times
. They are inconsistent in how they parse when an argument is missing.
x * y => [ 'Multiply', 'x', 'y' ] 👍
x \cdot y => [ 'Multiply', 'x', 'y' ] 👍
x \times y => [ 'Multiply', 'x', 'y' ] 👍
-- Right side missing
x * => [ 'Multiply', 'x', 'Missing' ] 👍
x \cdot => [ 'Multiply', 'x', 'Missing' ] 👍
x \times => [ 'Multiply', 'x', 'Missing' ] 👍
-- Left side missing
* y => [ 'Multiply', 'Missing', 'y' ] 👍
\cdot y => [ 'Multiply', '\\cdot', 'y' ] ❌
\times y => [ 'Multiply', '\\times', 'y' ] ❌