programming-languages - 什么是编程语言?

标签 programming-languages

Possible Duplicate:
What is a computer programming language?

No, really.

I've struggled to come up with a really great definition. Here's my take till now:

A programming language is a formal language, containing syntax. Syntactical rules are used to form statements. Programming languages are used to create a set of instructions that a computer can understand. A collection of syntactical statements is called a program.

I know it doesn't read very well, so it would be nice to have some help in this.



Here's Wikipedia's first paragraph on the topic:

A programming language is an artificial language designed to express computations that can be performed by a machine, particularly a computer. Programming languages can be used to create programs that control the behavior of a machine, to express algorithms precisely, or as a mode of human communication.



我认为这是生活中每个人都知道的东西之一,但是很难定义。

我一个人吗?你的想法?

最佳答案

我认为,维基百科非常正确:

A programming language is an artificial language designed to express computations
that can be performed by a machine, particularly a computer.

第一句话足以描述它是什么:
  • 这是一种人工语言(这是它的根源)
  • 它旨在表达可以由机器执行的计算(这是语言的目标/目的)

  • 这就是编程语言最一般的定义。

    您的定义缺乏这种通用性(例如,您的句子非常适合面向命令的语言,但不适用于例如逻辑编程)。

    关于programming-languages - 什么是编程语言? ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1775799/

    相关文章:

    programming-languages - 是否有任何面向对象的静态类型语言,其变量类型很少?

    programming-languages - 用于编写卫星任务程序的语言?

    programming-languages - 您对语言演变的预测

    c++ - C++ 是同时具有指针和引用的单一语言吗?

    ruby - 哪些语言支持 "dynamic"元编程?

    programming-languages - 为什么 SML 和 OCaml 被视为 ML 的方言?机器学习的定义是什么?

    java - 为什么这段代码在java中会耗尽内存,而在c中却不会?

    php - 我需要在 php 中释放对象吗?

    c - 高级语言的低级能力

    c - 在 return 语句中使用带有参数的宏