是否存在具有动态甚至弱类型输入的已编译*编程语言? [英] Is there a compiled* programming language with dynamic, maybe even weak typing?

查看:96
本文介绍了是否存在具有动态甚至弱类型输入的已编译*编程语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有一种编程语言可以编译为具有动态类型和/或弱类型的机器代码/二进制(不是字节码,然后由VM执行,这在考虑键入时是完全不同的),例如:

I wondered if there is a programming language which compiles to machine code/binary (not bytecode then executed by a VM, that's something completely different when considering typing) that features dynamic and/or weak typing, e.g:

想想一种编译语言,其中:

Think of a compiled language where:

  • 不需要声明变量
  • 可以在运行时创建变量
  • 函数可以返回不同类型的值

问题:

  • 有这样的编程语言吗?
  • (为什么)不?

我认为动态而强大的类型化编译语言确实可以理解,但是有可能吗?

I think that a dynamically yet strong typed, compiled language would really sense, but is it possible?

推荐答案

我相信Lisp符合该描述.

I believe Lisp fits that description.

http://en.wikipedia.org/wiki/Common_Lisp

这篇关于是否存在具有动态甚至弱类型输入的已编译*编程语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆