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

Partial function configurator #25

Open
clayote opened this issue May 8, 2017 · 1 comment
Open

Partial function configurator #25

clayote opened this issue May 8, 2017 · 1 comment
Labels

Comments

@clayote
Copy link
Collaborator

clayote commented May 8, 2017

Some functions that you use in rules will take keyword arguments that need to be pre-filled by the user before using the function in a rule. They're a kind of partial function, similar to what you'd use in functools.partial.

A user of ELiDE should be able to fill those arguments in graphically, just by filling out a form.

@clayote clayote added this to the Alpha8 milestone May 8, 2017
@clayote clayote modified the milestones: Alpha9, Alpha8 Jul 29, 2017
@clayote
Copy link
Collaborator Author

clayote commented May 28, 2018

I've stopped liking the idea of making new rules that are just partials wrapping stored functions; it complicates the data model more than just making the rules dependent on some stat of the entity they're about. However, it's currently too difficult to tell which stats are relevant to any given rule, and you have to back out of the rule configurator screen to go set those, which isn't very usable.

So there should be graphical forms on rules in the configurator that just change the relevant stat on the entity. Building those will require either static analysis on the rule's parse tree, or the rule's author manually specifying a relevant stat, perhaps using a new decorator.

@clayote clayote removed this from the Alpha9 milestone Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant