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

Attributes / properties: enable several items in the configuration for a given method name #11

Open
nthiery opened this issue Jul 22, 2018 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@nthiery
Copy link
Contributor

nthiery commented Jul 22, 2018

Example: the current syntax prevents specifying that "conjugate" should be displayed as a property both for Parititions and Tableaux:

conjugate:
  in : Tableaux()

conjugate:
  in : Partitions()

A potential alternative syntax could be:

- method: conjugate:
  in : Tableaux()
- method: conjugate:
  in : Partitions()

This would also enable separate items for in / not in:

- method: evaluation
  in: Tableaux()
- method: evaluation:
  in Tableaux()
  not when: is_standard

The in-memory representation should be adapted to enable fast query by method name;
presumably a dictionary mapping each method name to the list of relevant items. All items would be evaluated. The result would be True if there is an :in/when" match and no "not in/not when" match.

@zerline zerline added the help wanted Extra attention is needed label Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants