• TheBlackLounge@lemmy.zip
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    2 months 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 months 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.

    • 💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      3
      ·
      29 days ago

      And in some languages a number can be used as a name of a variable or a function

      Not in Maths it can’t

      so it can be anything really

      No, it can only be a Factorised Term, ab+ac=a(b+c). You also can’t call a function by any letter that you’ve used as a pronumeral