Skip to content

Uses "io.println" instead of "io::println", please. #2087

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

Closed
liigo opened this issue Mar 31, 2012 · 1 comment
Closed

Uses "io.println" instead of "io::println", please. #2087

liigo opened this issue Mar 31, 2012 · 1 comment

Comments

@liigo
Copy link
Contributor

liigo commented Mar 31, 2012

Dot is much easier to type than two colons (need Shift key). Most other programming language uses . instead of ::.

@marijnh
Copy link
Contributor

marijnh commented Mar 31, 2012

Rust used to work this way, but we switched to :: becuase we need to be able to disambiguate modules from regular values, because modules live in a different namespace. This has already been discussed at length.

@marijnh marijnh closed this as completed Mar 31, 2012
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
bors pushed a commit to rust-lang-ci/rust that referenced this issue Jan 2, 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