元句法变量:您是否使用“foo”、“bar”之外的其他内容? 根据你的母语
在英语中,变量 foo
和 bar
通常用于简单示例或匿名变量(请参阅这三篇文章以了解有关这些 元句法变量 (1)、(2)、< a href="https://stackoverflow.com/questions/234507/to-foo-bar-or-not-to-foo-bar-that-is-the-question">(3))
通常,我经常使用 titi
、toto
和 huhu
> 看来我不是唯一一个使用它们的法国人。
所以,它们在德语、西班牙语、中文或任何语言中应该是不同的......
而你,根据你的母语,你使用哪些变量名(除了 bar
和 foo< /code>,当然)在这种情况下(我的意思是匿名变量,因为我们都知道我们不应该在实际程序中使用它们)?
In english, the variables foo
and bar
are very often used for simple examples, or for anonymous variables (see these three posts for more on these metasyntactic variables (1), (2), (3))
Usually, I often use titi
, toto
and huhu
and it seems that I am not the only french guy to use them.
So, they should be different in german, spanish, chineese or whatever language...
And you, depending on your mother tongue, which variable names do you use (other than bar
and foo
, of course) in that case (I mean for anonymous variables, since we all know that we shouldn't use them in real program) ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
“wibble”在英国很流行。
Foo 和 Bar 一直是美国人,直到网络普及之前我从未听说过他们。
"wibble" was popular in England.
Foo and Bar were always American, I never heard them until the web became widespread.
在过去的六个月里,“thingy”和“thangy”一直出现在我的代码中。 不知道那是怎么开始的。 母语=英语。
[下面是在上面之后 24 小时添加的]
Hunh。 “thingy”出现在 Wictionary:Metasyntropic 单词 中(链接到 Wictionary:thingy) 并简要介绍 维基百科:Metasyntropic_variable。 当然,此页面现在显示在 "metasyntropic 的前 10 名 Google 搜索结果中thingy." (我只是让事情变得更糟,不是吗?)
我在 Emacs 中最常用它作为一次性缓冲区名称
"thingy" and "thangy" have been showing up in my code over the last six months. no idea how that started. mother-tongue = English.
[below added 24 hours after above]
Hunh. "thingy" shows up in Wictionary:Metasyntactic words (links to Wictionary:thingy) and briefly in Wikipedia:Metasyntactic_variable. And, of course, THIS page now shows up in the top-10 google hits for "metasyntactic thingy." (I'm just making it worse, aren't I?)
I use it most commonly as a throw-away buffer-name in Emacs
我认为这只能适用于使用拉丁字符的语言(因为大多数编程语言都使用此字符集)。
我在约旦(官方语言:阿拉伯语)的一家开发公司工作,我们使用
Foo
和Bar
。I think this can only apply to languages using Latin characters (since most programming languages use this character set).
I work in a development company based in Jordan (official language: Arabic), and we use
Foo
andBar
.除了“foo”和“bar”之外,我还使用“blah”、“variable”、“testvar”等。
In addition to "foo" and "bar", I also use "blah", "variable", "testvar" and others.