foo (arg1, arg2)命令
这里"foo"这个词的意义就是“你给这个命令的命名”。换句话说,"foo"本身没有任何意义,它所表达的意义将在后面使用这个模版定义一个真实的命令时提供。("arg1" and "arg2" 是你要定义并传递给这个命令的参数。)正因为"foo"本身没有含义而通常被用作指代,程序员就应该了解这一点。
Foo或者别的被这样使用词汇, 正式称谓是“元变量”。依瑞克.雷蒙德或许可算是这方面的权威。在 对foo 及其他“元变量” 比如 qux, waldo, fred, xyzzy (还有其他一些偶尔被人使用),雷蒙德注解说,在美国以外的地方人们有各自的不同表达方法。在英国人们使用Fred, barney, and wombat。在法国人们使用Toto, tata, titi, and tutu。新西兰人用Blarg 和wibble。
Foo这个词的起源已被人忘却。但雷蒙德注意到在比尔.霍尔曼1930-50年间的连环漫画 Smokey Stover 里"FOO"经常出现,但没有作说明。



Del.icio.us
foo的含义


長沙司馬 Level 7 | Blog | 01/09/2008
受教啊。。。。
sicaral Level 5 | 01/09/2008
一种来源是二战美军俚语FUBAR ('Fucked Up Beyond All Repair')=>foobar=>foo
恨不能 Level 1 | 01/10/2008
我太落后了,看不懂啊
Beyond Level 7 | Blog | 01/19/2008
"foo" almost always appears at the same time as "bar" when ppl use them to refer to function name or variable name. So I always had the impression that it was from FUBAR. See sicaral's comments above. Sorry can't input Chinese here.
ppip Level 6 | Blog | 01/24/2008
Fucked Up Beyond All Repair
这个能解释一下么。。。