gpt4 book ai didi

actionscript - 为什么ActionScript长大了,有了编译语言,还说是脚本语言?

转载 作者:行者123 更新时间:2023-12-02 06:24:29 27 4
gpt4 key购买 nike

来自维基百科的定义,

编程语言是

Scripting languages are languages that allow you to send commands directly to a system that executes these commands. These commands are read line by line and executed-interpreted, but not compiled.

脚本语言是

Programming languages are languages that allow you to create a program by writing structured code that is read all at once by the system, checked for errors, and translated into an unreadable format that the machine can then execute(compiled).

ActionScript 现在是相当发达的语言(编译后运行而不是解释),在 ActionScript 3、Flex 和 Air 之后,很难相信 ActionScript 仍然被称为脚本语言。

最佳答案

编程语言和脚本语言之间的界限是模糊的。曾几何时,“编程语言”是一种编译语言,如 C 或 C++,因为只有这些语言才真正足够高效,可以用它编写重要的程序。脚本语言是通常不编译的语言,因此速度较慢;他们的相对低效率使他们只能从事系统维护任务或将已编译程序的各个部分“粘合”在一起。现在,计算机速度越来越快,语言解释器也越来越先进,因此即使是传统的“脚本”语言,如 Python 或 Tcl,也可以用来编写成熟的应用程序。然而,一旦一种语言被称为脚本语言,就很难摆脱这个称号。

关于actionscript - 为什么ActionScript长大了,有了编译语言,还说是脚本语言?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3216236/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com