terminology - foo, bar, baz 等的含义

标签 terminology metasyntactic-variable

我一直想知道 foo、bar、baz 等... 名字的意思。

我曾多次在科学文章中发现这些术语。此外,该术语以某种方式用作其他示例的标准。

有谁知道这些术语的来源,以及如何正确使用它们?

最佳答案

虽然这个问题超出了 Stack Overflow 的范围,但我强烈推荐维基百科关于这个问题的文章:

The History of Foobar

快速预览:

The word foo originated as a nonsense word from the 1930s, the military term FUBAR emerged in the 1940s... The term foo fighter was used by Allied aircraft pilots in World War II to describe various UFOs or mysterious aerial phenomena. The first known use of the terms in print in a programming context appears in a 1965 edition of MIT's Tech Engineering News.

关于terminology - foo, bar, baz 等的含义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34212049/

相关文章:

java - 这种代码增强或实践称为什么? (null == conn) 相对于 (conn == null)

c++ - 没有输入/输出的函数是过程吗?

atomic - 为什么它被称为读-修改-写而不是读-写?

algorithm - 什么是循环不变量?

Javascript 获取变量名

python - 下划线 _ 作为 Python 中的变量名

c++ - Mac 上的 App Bundle 是什么?

python - Python中单个下划线 "_"变量的目的是什么?

history - foo和bar的起源是什么?