像我 8 岁一样向我解释连接语言 [英] Explain concatenative languages to me like I'm an 8-year-old

查看:50
本文介绍了像我 8 岁一样向我解释连接语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了维基百科关于连接语言的文章,现在我比我刚开始的时候.:-)

I've read the Wikipedia article on concatenative languages, and I am now more confused than I was when I started. :-)

用愚蠢的人术语来说什么是连接语言?

What is a concatenative language in stupid people terms?

推荐答案

对于您的简单问题,这里有一个主观且有争议的答案.

To your simple question, here's a subjective and argumentative answer.

我看了这篇文章和几个相关的网页.网页自己说没有真正的理论,所以难怪人们很难想出一个精确且易于理解的定义.我想说,目前,将语言分为串联"或非串联"是没有用.

I looked at the article and several related web pages. The web pages say themselves that there isn't a real theory, so it's no wonder that people are having a hard time coming up with a precise and understandable definition. I would say that at present, it is not useful to classify languages as "concatenative" or "not concatenative".

对我来说,这似乎是一个让 Manfred von Thun 占据一席之地的术语挂掉他的帽子,但可能对其他程序员没有用.

To me it looks like a term that gives Manfred von Thun a place to hang his hat but may not be useful for other programmers.

虽然 PostScript 和 Forth 值得研究,但我在 Manfred von Thun 的 Joy 编程语言中没有看到任何非常新或有趣的东西.事实上,如果你阅读 Chris Okasaki 的论文 在 Haskell 中嵌入 Postfix 语言的技术 您可以在相对于 Joy 而言完全主流的环境中尝试所有这些东西.

While PostScript and Forth are worth studying, I don't see anything terribly new or interesting in Manfred von Thun's Joy programming language. Indeed, if you read Chris Okasaki's paper on Techniques for Embedding Postfix Languages in Haskell you can try out all this stuff in a setting that, relative to Joy, is totally mainstream.

所以我的答案是没有简单的解释,因为在串联语言的概念背后没有成熟的理论.(正如爱因斯坦和费曼所说,如果你不能向大学新生解释你的想法,你就没有真正理解它.)我会进一步说,尽管学习其中的一些语言,比如 Forth 和 PostScript,是一种充分利用时间,试图弄清楚人们说串联"时的确切含义可能是在浪费您的时间.

So my answer is there's no simple explanation because there's no mature theory underlying the idea of a concatenative language. (As Einstein and Feynman said, if you can't explain your idea to a college freshman, you don't really understand it.) I'll go further and say although studying some of these languages, like Forth and PostScript, is an excellent use of time, trying to figure out exactly what people mean when they say "concatenative" is probably a waste of your time.

这篇关于像我 8 岁一样向我解释连接语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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