Are there programming languages ​​with implicit multiplication?

Is there a programming language in which any of the following:

  • a numeric literal next to a variable 3x,-0.5y
  • numeric literal or numeric variable next to the expression in parentheses a(b+c+d) 2(x-y)
  • two adjacent parenthesized expressions (1+x)(1-x) (4a-5b)(1+4c)

interpreted as multiplication?

I see syntax problems that this can cause, but I'm curious if any language went ahead and did it anyway.

+3
source share
3 answers

TI-BASIC does this in certain circumstances. I believe that certain CAS-oriented pagans also do.

+3
source

, Mathematica, , vars. Wolfram Alpha , .

+2

IIRC, Fortress has a "matching operator", which for numeric types is defined as multiplication.

+2
source

Source: https://habr.com/ru/post/1606354/


All Articles