gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 12:25:16 26 4
gpt4 key购买 nike

我正在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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com