Use Bullet Notation For 'pub' Keyword #1249
human154
started this conversation in
Ideas & suggestions
Replies: 1 comment
-
The language author addressed this: I appreciate/respect his perspective and I consider the topic adequately addressed by his comment there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The suggestion is to replace this syntax (with the pub keyword):
with this (using a leading dash instead):
The obvious disadvantage of this is that the dash is less intuitively meaningful, however, it's easy to learn and we only need to learn it once.
Once it's meaning is understood, the dash syntax would be less noisy and easier to read. The 'pub' keyword is important but it shouldn't be the central focus of the line and currently it takes up slightly more mindshare than it deserves.
This would make it faster for humans and the compiler to parse the code and also easier to write and later modify.
Beta Was this translation helpful? Give feedback.
All reactions