syntax - Makefile空白语法背后的原因是什么?

标签 syntax makefile

我正在Michael Sparks在伦敦的SO DevDay上出色地介绍了Peter Norvig的Python拼写检查器之后,重新访问Python。

他强调的要点之一就是要看Python多么干净。合并范围不要用括号括起来,而是使用空格来表示块合并范围。

这让我开始思考。我想知道这是否是TAB缩进背后的原因,TAB缩进是构建目标所需的命令的前缀。

它是相同的清晰度方面吗?为了容易地区分目标和构建目标所需的命令?

最佳答案

引自“Unix编程的艺术”一句:

Why the tab in column 1? Yacc was new, Lex was brand new. I hadn't tried either, so I figured this would be a good excuse to learn. After getting myself snarled up with my first stab at Lex, I just did something simple with the pattern newline-tab. It worked, it stayed. And then a few weeks later I had a user population of about a dozen, most of them friends, and I didn't want to screw up my embedded base. The rest, sadly, is history.
-- Stuart Feldman

关于syntax - Makefile空白语法背后的原因是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1755550/

相关文章:

c++ - 是 "long long"= "long long int"= "long int long"= "int long long"吗?

c - 生成文件错误 *** 没有规则可生成 `3' 所需的目标 `run'。停止

c++ - 将 gprof 与 LULESH 基准结合使用

makefile - makefile 的诊断输出(如 make[N])的含义

syntax - 如何从同一 YAML 文件中的其他位置引用 YAML "setting"?

Delphi:右括号可选?

ruby 访问静态变量

syntax - Go golang,语法错误 : unexpected++, 期望:

c - `multiple definition of` 很多变量错误 - 我的 make 文件不正确吗?

c++ - CMAKE - 调试/交叉构建?