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

Migrate languages to use talon list files #1703

Open
Nova38 opened this issue Jan 24, 2025 · 1 comment
Open

Migrate languages to use talon list files #1703

Nova38 opened this issue Jan 24, 2025 · 1 comment

Comments

@Nova38
Copy link

Nova38 commented Jan 24, 2025

The issue #1597 seaks to simplify the implementation of of th code operators if I read it correctly. Currently it looks like a lot of list talon list are defined In their <language>.py files instead of in .tslonlist files. Would it be advantages to move those list to standardized list files inside of the given language folders instead of having them all in the .py files? It think it might be for a few reasons:

  1. It could be easier to have a generic folder template for implementing a new language, and what list need to be created for it
  2. If end users modify the .talonlist files I their forkss of the repo it would be easier for them to maintain their changes in separate list files instead of potentially dealing with multiple merge conflicts inside of the .py file
  3. It could also help to see from a high level perspective if any languages need additional work implementing the generic tlaontwga for the given languages
@nriley nriley added the to discuss To discuss in one of the meet-ups label Jan 25, 2025
@nriley
Copy link
Collaborator

nriley commented Jan 25, 2025

We discussed this in the community backlog session and the short answer is that we are already migrating to .talon-list files as much as we can in community’s programming language support, for example with operators in #1650.

With respect to your first point, because languages vary so much in what operators, functions, control constructs and so forth they support, I don't think there really is such a thing as a generic language or list of lists. One way forward might be a single Python file that becomes a template of all possible language constructs that can be implemented with examples of each.

Will leave this open in case you have some specific suggestions for next steps after reviewing #1650 — thanks!

@phillco phillco changed the title Migrate languages to use talonist files Migrate languages to use talon list files Jan 25, 2025
@nriley nriley removed the to discuss To discuss in one of the meet-ups label Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants