-
Notifications
You must be signed in to change notification settings - Fork 257
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
[Docs] Show inline array value initialiser shortcut #1660
Labels
part: documentation
Dafny's reference manual, tutorial, and other materials
Comments
Honga1
changed the title
[Documentation] Show inline array value initialiser shortcut in docs
[Docs] Show inline array value initialiser shortcut in docs
Dec 20, 2021
Honga1
changed the title
[Docs] Show inline array value initialiser shortcut in docs
[Docs] Show inline array value initialiser shortcut
Dec 20, 2021
keyboardDrummer
added
the
part: documentation
Dafny's reference manual, tutorial, and other materials
label
Dec 20, 2021
That was an easy fix, thanks for reporting ! Will be resolved with #1661 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What
Add inline array intialiser syntax to documentation
Why
This is an expected feature from the use in other languages such as c#. It should feel more obvious.
Background
I was trying to find a way to initialise an array to a list of values. I could not find this in the docs easily (cheatsheet, tutorial, quick reference). Except for doing it in spread assignment fashion.
I then found this PR which introduced the feature. However it seems it's undocumented:
72f60ac
Edit: I can see the syntax listed here:
https://dafny-lang.github.io/dafny/DafnyRef/DafnyRef#151-one-dimensional-arrays
The text was updated successfully, but these errors were encountered: