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

Is "argv" a good name? #178

Closed
saper opened this issue Apr 8, 2020 · 4 comments
Closed

Is "argv" a good name? #178

saper opened this issue Apr 8, 2020 · 4 comments

Comments

@saper
Copy link
Contributor

saper commented Apr 8, 2020

I was surprised to see "argv" mentioned in the documentation - this is not quite "plain" English... something else, like "program parameters", maybe?

@xvxx
Copy link
Collaborator

xvxx commented Apr 10, 2020

Yes it’s a bit cryptic, isn’t it? Apparently it originally stood for “argument vector” back in the day.

Maybe just “arguments”? I doubt that variable is used often in regular code, and I think LDLP will let you redefine and reuse it anyway if you want.

Side note: I believe that, technically speaking, “parameters” are the names and types of the variables used when defining a function, while “arguments” are the values of those parameters when the function is invoked. So I think we should try to keep it to something arg-related here for accuracy.

@Lartu
Copy link
Owner

Lartu commented Apr 12, 2020

Yes, it's a bit cryptic. Maybe we should rename it in future, major, non-backwards-compatible releases of the language, but if we were to change it right now we might break a lot of libraries and code, and that would be nasty.

@saper
Copy link
Contributor Author

saper commented Apr 12, 2020

Sure, I'm just getting to learn the language; maybe we'll find more stuff like this in the meantime - thank you!

@Lartu
Copy link
Owner

Lartu commented Apr 17, 2020

Thank you for telling us about this!

@Lartu Lartu closed this as completed Apr 18, 2020
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

3 participants