-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
chained methods do no parse correctly if .
is separated from call
#23258
Comments
The code works as expected if you move the mut s:= 'aAabBc'
s = s .camel_to_snake()
.to_lower()
.to_upper()
println(s) which gives the output
Now, whether or not it should be considered an error with the |
.
is separated from call
At the very least, the error messages could be cleaned up a LOT, to better convey what's wrong. Here's what you get currently:
|
I am ok, with the latest parser support, with the syntax you mentioned.
Sure, just, get the error messages cleaned up. It is the same issue, for one error, we get multiple messages, throughout the V compiler. |
Describe the feature
V currently supports, method chaining in single-line, as below.
I want V to support, methods specified on more than one line:
Use Case
Readability issue, when more custom built methods are used.
Proposed Solution
V language parser needs to be enhanced
Other Information
No response
Acknowledgements
Version used
V 0.4.9
Environment details (OS name and version, etc.)
OS Linux
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.
The text was updated successfully, but these errors were encountered: