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

isort for other languages? #2309

Open
dreamworks opened this issue Nov 26, 2024 · 1 comment
Open

isort for other languages? #2309

dreamworks opened this issue Nov 26, 2024 · 1 comment

Comments

@dreamworks
Copy link

just out of curiosity. Does anyone know any isort "form" for other programming languages?
any reason why this project is limited to python?

@matthewhughes934
Copy link
Contributor

just out of curiosity. Does anyone know any isort "form" for other programming languages?

I think most programming languages have something similar, some examples:

any reason why this project is limited to python?

My guess would be simplicity. Since every programming language has distinct syntax, conventions etc. it would be difficult to maintain parsing logic for each language, especially across version changes. Additionally, programming languages usually provide tools to inspect their own code, e.g. the ast library in Python https://docs.python.org/3/library/ast.html, this generally makes it easier to write tools that need to read/understand source code using that same language

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