News for hackers. Stuff that matters.
Re:Leaving Haskell Behind by twic on Thursday August 24, 2023 @06:21PM (#37255321)
Gradle is declarative. The 'code' you write does not conduct the build; it assembles an object graph which describes the build, much like the one you get from parsing the Maven XML. The advantage of using code for this is that you the description can be more concise, expressive, etc. But once it's run, the graph is built, and you can explore that, list dependencies, etc, quite safely.
Re:Leaving Haskell Behind by grumpyprole on Thursday August 24, 2023 @06:38PM (#37255472)
> Gradle is declarative

Gradles own docs say "Well-designed build scripts consist mostly of declarative configuration rather than imperative logic".

When it's up to the programmer to make a script declarative, it's not a declarative language.