Skip to content

Commit 6094e90

Browse files
committed
Parameterized goals #115 README
1 parent 672ee23 commit 6094e90

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

docs/parameterized_goals.md

+8-10
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ No. `@args` will be only allowed in pos=3. All items afterwards are considered a
4646

4747
## Q. Shall we restrict the param name to Name123? `[A-Z][A-Za-z0-9_]*`
4848

49-
This might be good idea / convention.
49+
Yes, this is a good idea / convention.
5050

5151
## Q. Can we make parameterized goals resolution during parsing? We might need to know the number of params for a goal which is not available yet, since goal may come later.
5252

@@ -63,31 +63,29 @@ I.e. when `@args` is at pos=3
6363
No
6464

6565
## Q. Allow listing PG?
66-
No.
67-
What about “instantiated” goals?
66+
No. But we list “instantiated” goals instead.
6867

6968
## Q. Loops detection.
70-
Based on goal name only? I.e. disallow depending PG on itself in any way.
69+
Based on goal name only. I.e. disallow depending PG on itself in any way.
7170

7271
## Q. What can be `@args VAR`?
7372
Only:
74-
- what’s in `@define`
73+
- what’s in `@define` (not now, maybe in future)
7574
- any VAR in `@params` of this goal
76-
All other cases must cause error.
75+
- All other cases must cause error.
7776

7877
## Q. Mechanism for "instantiation"
7978

8079
Also here. Need to adjust `-d` option. Should list instantiated goals in form
8180

82-
- `pg1 @args 'hello'`
83-
- `pg2 @args 'hello' $'with \''`
81+
- `pg1@hello`
82+
- `$'pg2@hello@with \''`
8483
- `nonpg`
8584

8685
1. Build tree no-params : detect loops
8786
2. Build tree non-instantiated
8887
3. Instantiate. How?
89-
90-
On encounter `@depends_on` generate instantiated? But this needs to go in-depth.
88+
- On encounter `@depends_on` generate instantiated. This needs to go in-depth.
9189

9290
## Parameterized goals vs existing features
9391

0 commit comments

Comments
 (0)