stdlib: Fix %branch -> %fedora-branch.
[goals.git] / TODO
1 'let :=' for immediate evaluation in assignment.  Does this work for
2 included files?  Also ?= to only override if not already defined.
3
4 Default parameters, ie:
5   goal foo (name, release = true) = ...
6 You might only allow defaults to be added to the end, or you
7 might allow goals to be called with labelled parameters.
8
9 Deleting target files if goals is interrupted, but only if the
10 timestamp changes (what about non-*files?).  Also: atomic code.  This
11 will delete the target if the code doesn't run to completion.  (make
12 doesn't do this, but probably it should).
13
14 Conditional sections (same as "ifeq" etc in make).
15
16 Let within functions and goals, eg:
17   function foo () =
18     let temp = "%bar%baz";
19     { .... }
20 Unclear if this would be helpful or not.
21
22 Make re-execs itself if the Makefile (or any include) changes, and
23 goals should do something similar.  See:
24 https://www.gnu.org/software/make/manual/html_node/Remaking-Makefiles.html
25
26 Code should be an expression, eg this ought to work:
27 let foo = { echo "hello" }
28 and/or anonymous functions:
29 let foo = function (arg) { ... }
30
31 Infinite loop when you have this goal:
32 goal pod2man (page, section) = "docs/%page.%section" : "docs/%page.pod" { ... }
33 This is caused by %section matching "pod" so the rule is called
34 again, even if the local file docs/%page.pod actually exists.
35
36 Implement make-like “eval” function (similar to include directive,
37 but it evaluates the output of a function as Goalfile syntax).
38
39 Implement make-like “origin” function.  This is easy but it requires
40 us to track to the origin of definitions which we do not do at
41 the moment.