Search code examples
terminologyimperative-programming

What (precisely) is a command?


Which of the following is most appropriately called a "command," and what should the other be called?

  1. changeDirectoryTo
  2. changeDirectoryTo /home/peter

Solution

  • The command is changeDirectoryTo. /home/peter is the argument to that command