Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set a default memory and/or buffer? #8

Closed
asmaloney opened this issue Aug 10, 2021 · 1 comment
Closed

Set a default memory and/or buffer? #8

asmaloney opened this issue Aug 10, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@asmaloney
Copy link
Owner

Maybe allow declaring one memory and one buffer as default?

buffers {
    goal: {
        default: true
    }

    retrieve{}
}

memories {
    memory {
        buffer: retrieve
        default: true
    }
}

Then we can shorten production statements:

set field 4 of goal to 'busy'
recall `count ?next ?` from memory

would become:

set field 4 to 'busy'
recall `count ?next ?`

It would make reading productions less explicit which may be a drawback.

I kind of like the memory one, but not the buffer. I think because the memory feels more like a global in the context of the production statements.

@asmaloney asmaloney added the enhancement New feature or request label Aug 10, 2021
@asmaloney
Copy link
Owner Author

Now irrelevant since the buffers and memory are created implicitly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant