同音性究竟是什么意思? [英] What exactly does homoiconicity mean?
问题描述
我试图理解维基百科关于同质性的文章,但它太冗长,并没有解释背后的主要理论这个词简明扼要.我应该补充一点,我的母语不是英语,所以我更喜欢简单的英语而不是学术白皮书引用.
I was trying to understand the Wikipedia article on homoiconity, but it's too verbose and does not explain the main theory behind the word concisely. I should add that I'm not a native English speaker so I prefer simple English over academic white paper quotes.
那么,如果一种语言是同音异义的,这究竟意味着什么?是什么让 C#、Java 或 JavaScript 变得非同形异象?
So, what exactly does it mean if a language is homoiconic? What makes C#, Java or JavaScript non-homoiconic?
推荐答案
意为代码即数据",这是 Lisp 家族的一个普遍特征.
It means "code as data" which is a general characteristic of Lisp family.
(add 2 3)
就像上面的字符串一样,它既是一个列表,也是一个函数调用.Homo"前缀代表这个特征.
Just like above string, which is both a list and also a function call. The "Homo" prefix stands for this characteristic.
这篇关于同音性究竟是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!