4 ms·
Make can't decide whether it's a dependency graph or a macro language. That leads to weird semantics like this.
by Animats 10y ago
Make can't decide whether it's a dependency graph or a macro language. That leads to weird semantics like this.
- dozzie 10y agoYou have rough corners in every language. Make is actually quite good (meaning: easy to read, without much gymnastics) in its typical use case of compiling a software project. The post was written specifically to explore one of these rough corners everything has.
- jessaustin 10y agoReading it may be easy, but every time I've tried to use make (i.e. write a Makefile that does what I want) I've found it to be composed almost entirely of rough corners.
- Ace17 10y agoHave you read the manual?
- jessaustin 10y agoYes, and I've purchased and read books, and I've read online resources. Granted, none of this has been within the last several years, so if there have been major changes in that span I've missed them. But thanks for the charitable question!
- dima55 10y agoWhoa. This is NOT a rough corner. It is a fundamental part of the language. Deferred variables are akin to functions in other languages, while immediate ones are more like variables in other languages.
- ssalazar 10y agoDid you read the whole article? This technique doesn't appear in the manual at all and I've read it quite a few times. If it was so fundamental why is it so awkward to construct?
- gkya 10y agoMake is a dependency graph with macroes for not having to repeat, copy-and-paste, and hard-code stuff.
- wtbob 10y agoThat's why I like ASDF3: it manages dependency graphs with a superlative macro language not of its own design.