Sligthly better anonymous givens names #19179
Closed
Lasering
started this conversation in
Feature Requests
Replies: 2 comments 1 reply
-
We cannot change the generated names in a compatible way. So I'm afraid we're stuck with the current spec. |
Beta Was this translation helpful? Give feedback.
1 reply
-
where it's recommended to just name them. I proposed auto-suggesting a unique name, as when registering for a web site with a user name or generating a password. Alternatively, disambiguate during incremental compilation only, with the expectation that the final edit will be unambiguous. It would warn until then. |
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 following:
Fails with:
Scastie link
Which is as expected reading the documentation Anonymous Given Instances. Namely the point 2:
However this could be improved. If the user declared the given with a prefix, then use that prefix to generate the anonymous given name. So in this case the generated names would be:
given_Decoder_Connector_Type
andgiven_Decoder_Parking_Type
Beta Was this translation helpful? Give feedback.
All reactions