Skip to content

Defining a task that should always be performed before anything else #159

Closed Answered by rpgoldman
ko56 asked this question in Q&A
Discussion options

You must be logged in to vote

What I do right now is for every top-level task, your (:ordered (set-up) <real-top-level-task>). But this is inconvenient, and causes problems if you forget to do it.

That is true, but as I said, I find that for any real applications (as opposed to test cases in files) I always end up writing one or more special-purpose functions that invoke make-problem, in which case all I have to do is put this pattern into the problem-creating function. In practice, I generally find that real problems require that the initial state be programmatically generated, typically because it's a combination of boilerplate contents (e.g., propositions that capture a fixed graph of connections) and additional …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ko56
Comment options

ko56 Feb 9, 2024
Collaborator Author

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ko56
Comment options

ko56 Feb 9, 2024
Collaborator Author

Answer selected by ko56
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