You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compact way to initialize a fixed array is like a regular one but adding a !. I wrote a test using the form, but now weeks later I confuse the ! thinking I did a propagation of a Result error. Is easy to forget that here ! is not related to Results and takes time to realize this even in your own code.
Describe the feature
The compact way to initialize a fixed array is like a regular one but adding a
!
. I wrote a test using the form, but now weeks later I confuse the!
thinking I did a propagation of a Result error. Is easy to forget that here!
is not related to Results and takes time to realize this even in your own code.Use Case
From the docs https://docs.vlang.io/v-types.html#fixed-size-arrays one way to change an ordinary array to a fixed one is simply adding a
!
to it:When you have this line in your code surrounded by other lines propagating errors, you confuse things.
Proposed Solution
Maybe change this:
into something like this:
Other Information
No response
Acknowledgements
Version used
V 0.4.8 62bdf99
Environment details (OS name and version, etc.)
Tested in playground.
Huly®: V_0.6-21294
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: