• Xeroxchasechase@lemmy.world
    link
    fedilink
    arrow-up
    17
    ·
    edit-2
    4 months ago

    Wait does it teach ai programming in BASIC?

    10 dim prompt
    20 input(prompt)
    30 pring "Nice to meet you"+prompt
    40 play g3 c4 e4
    50 goto 20
    
    • umbraroze@lemmy.worldOP
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      4 months ago

      I’m in middle of a Rust module of a course, so I’ll do some Programmer Friendly Error Messages:

      Line 10: You do not need to dimension a dimensionless variable such as a standalone string variable. (This ain’t Visual Basic.)
      Line 20: input doesn’t do parentheses, sorry
      Line 20: Input accepts a string: Perhaps you meant prompt$?
      Line 30: Concatenation is too modern, perhaps instead of + you meant ; just saying?
      Line 40: Invalid syntax with play, maybe you meant play "g3c4e4"?