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

Limit number of parent specifiers (i.e. ^^ or ..) #2

Open
analog-cbarber opened this issue Sep 6, 2023 · 3 comments
Open

Limit number of parent specifiers (i.e. ^^ or ..) #2

analog-cbarber opened this issue Sep 6, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@analog-cbarber
Copy link
Member

analog-cbarber commented Sep 6, 2023

In practice, we have found that using too many ^^ or .. specifiers requires too much
mental gymnastics on the part of the reader and detract from readability.

We could either disallow more than one or two levels or we could add an
option to specify the max. Or we could simply recommend against too many
levels in the documentation.

@analog-cbarber analog-cbarber added the enhancement New feature or request label Sep 6, 2023
@a-recknagel
Copy link

what about an alternative syntax to ^ using dots? since that's the unix-standard to specify paths, it might feel more natural:

[some function][^^.some_function]
# vs
[some function][...some_function]

@analog-cbarber
Copy link
Member Author

You can already use dots instead of ^ just as you suggest. This issue is just about the ability to limit how many are allowed. In practice I have found that neither ...foo nor ^^.foo are that easy for users to mentally convert to what they refer to.

@a-recknagel
Copy link

Ah, properly understanding the title might have helped me there. fwiw, I haven't had that issue yet, and it's a kind of complexity that is inherent to the subject. Then again, my projects are usually rather flat, I don't have more than two levels of folders from top to bottom in my source code tree.

@analog-cbarber analog-cbarber changed the title Limit number of ^^ or .. Limit number of parent specifiers (i.e. ^^ or ..) Jan 18, 2024
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

2 participants