Replies: 6 comments 18 replies
-
Moved to a discussion as this would be a MAJOR breaking change to V, and the pros and cons will have to be debated, first. |
Beta Was this translation helpful? Give feedback.
-
Display declaration module:
|
Beta Was this translation helpful? Give feedback.
-
Right now we have a folder
|
Beta Was this translation helpful? Give feedback.
-
Against such a change. Not only that, but think team V needs to be careful. 1) Huge breaking changes, like that and so late in development, can sabotage user trust. This fans the flames for those looking to call the language unstable or unfocused, whether that's justified or not. Arguably, should avoid doing anything dramatic, unless demonstrably necessary. There is a lot on the todo list, as is. 2) Change would undermine any existing videos, examples, books, or documentation that has it the present way. Related to that, appears easier to teach the concept of modules to new users, when names are declared. 3) Module declaration creates clarity about which files are for what or if they belong together. Individual files can be named something weird or unrelated to the directory, and then misplaced or moved. If the misplaced files all have the same unique module name, less of a problem to reorganize them correctly. |
Beta Was this translation helpful? Give feedback.
-
I think one of the key drivers for this was this phrase: A standard problem for all new languages... everyone wants something new, but they want it to be just like what they are used to using. V is like Go in this instance, rather than JavaScipt. |
Beta Was this translation helpful? Give feedback.
-
Actually, we just need to discuss the pros and cons of doing so and whether it will introduce new complexity |
Beta Was this translation helpful? Give feedback.
-
Describe the feature
Since folder determine the module name in V and each folder is a module, can we remove module declarations from .v files?
Then all code in a file will start with imports like in javascript
Benefits of this:
Use Case
Proposed Solution
No response
Other Information
No response
Acknowledgements
Version used
V 0.4.9
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
Beta Was this translation helpful? Give feedback.
All reactions