Skip to content

PMASIAUJ - Chapter 5, Exercise 1c - This works, but is there a better way? #117

Answered by jomifred
mindcrime asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Phillip, great you are progressing! (and animating the discussion about Jason)

Initial reaction:

  1. good you opted for a goal oriented approach instead of an event oriented!

  2. equality tests like X == 0 are usually unnecessary in logic programming, unification may be used in place. For instance +numdirty(X) : (X == 0)... -> +numdirty(0) .... It occurs in @C5 too.

  3. it seems several intentions for goal cleanroom will be running, triggered by the last plan. Maybe it is better to ensure just one intention. Could cleanroom be an initial goal?

  4. not clear why you have to add the atomic annotations for the plans... (maybe it is related to 3.)

  5. plans c2 and c4 seems the same... could it be th…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mindcrime
Comment options

@mindcrime
Comment options

@jomifred
Comment options

Answer selected by mindcrime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants