• Truscape@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    3 days ago

    Some forms of programming syntax, although there are the fringe cases where an equation (or function in programming) is represented by a symbol in conjunction with a parentheses input.

    For example:

    y(x) = 2*x+3

    5+y(1) = 10, as 1 is substituted in for x in the prior equation.

    • TheBlackLounge@lemmy.zip
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 days ago

      And in some languages a number can be used as a name of a variable or a function, so it can be anything really

      • MotoAsh@piefed.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 days ago

        Not in most programming languages, though. You cannot start names with a number. Unless you’re using some strange character that merely looks like a number, anyways. Programming with unicode can get weird but generally works without issue these days.

    • moriquende@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 days ago

      Wouldn’t we just assume function expressions are always “in parenthesis”? Then it’s just a substitution and no rules were changed.