Replies: 3 comments 28 replies
-
There's no re-writing, vfmt updates const and import groups to the new syntax. It's much easier to grep for consts and imports this way. |
Beta Was this translation helpful? Give feedback.
19 replies
-
Groupings impede simple search tools like grep and ripgrep. |
Beta Was this translation helpful? Give feedback.
9 replies
-
They have not. It is a pain to search for stuff in Go projects (for me, I do not know about others), using language agnostic tools. |
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
-
Why would V go down this path of creating more user inconveniences on this issue? This includes forcing users to rewrite and update their code unnecessarily or seemingly frivolously. Please reconsider this issue and keep in mind V's many loyal fans and attracting new users. I've happen to have already read some comments concerning such (groupings and needing to do rewrites).
Groupings just makes more sense than unnecessarily typing the same keyword repeatedly. Especially if V is promoting readability and ease of use. V is such a great language, that it should stay looking nice.
This excessiveness (which is arguably a kind of violation of DRY)...
Would arguably look better as...
If the argument is to force only 1 way, then this can be done by typing
const (a = 1)
for single items, where()
is always used. In fact, that's arguably the direction that import and __global should go as well.Understand there can be reasons and are totally sympathetic to developers, but if Go and other languages have figured out how to do this, why would V go backwards? And finally, medvednikov typed he preferred const groupings, so not understanding as to what could have happened.
Beta Was this translation helpful? Give feedback.
All reactions