Skip to content
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: Update the function section of the tutorial for Dafny 4 #5006

Merged
merged 8 commits into from
Mar 5, 2024

Conversation

turbotimon
Copy link
Contributor

@turbotimon turbotimon commented Jan 24, 2024

Description

  • In the tutorial there still Dafny v3.0 explanation and exercise regarding function method.
  • I changed the text and exercise 5 to new v4.0 ghost function syntax.
  • Text was mostly copied from Dafny Documentation
  • Please feel free to change my suggestion as you wish

How has this been tested?

  • Text: Spellcheck
  • Code: Dafny VSCode Extension

👉️ fixes #5007

@fabiomadge
Copy link
Collaborator

Thanks for your contribution! The problem with the paragraph you added is, that ghost functions aren't necessarily opaque, which is what the test describes.
I tried converting the functions to ghost functions, but came to the conclusion that this is an unnecessary distraction at that point of the reader's learning journey, now that we changed the default.
Let me know what you think.

@turbotimon
Copy link
Contributor Author

Hi @fabiomadge, that also works for me! Whatever you think is best :)

@fabiomadge fabiomadge changed the title Fixing pre v.4.0 explanation and exercise for function method with ghost function docs: Update the function section of the tutorial for Dafny 4 Mar 5, 2024
@fabiomadge fabiomadge enabled auto-merge (squash) March 5, 2024 08:41
@fabiomadge fabiomadge merged commit 354aaeb into dafny-lang:master Mar 5, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pre v4.0 function method syntax instead of new ghost function
2 participants