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

[forth/en] correct some mistakes, make better wording in some places #4976

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ruv
Copy link

@ruv ruv commented Jun 6, 2024

Changes

  • A variable size cannot be changed in Forth (see variables).
  • variable shall not be used to create a variable that holds a floating-point number. Use fvariable instead.
  • In Forth, i is NOT equivalent to r@. Remove the corresponding sentence.
  • Add an example of using the return stack and begin ... while ... repeat loop.
  • Make one-to-12 do what its name suggests.
  • Add a link to the Forth Standard.
  • Make some comments more consistent (e.g. instead of using the terms "item" and "element", use "item" throughout).
  • In some places, make comments more correct or detailed, briefly explain the stack diagrams.

  • I solemnly swear that this is all original content of which I am the original author
  • Pull request title is prepended with [language/lang-code] (example [python/fr-fr] or [java/en])
  • Pull request touches only one file (or a set of logically related files with similar changes made)
  • Content changes are aimed at intermediate to experienced programmers (this is a poor format for explaining fundamental programming concepts)
  • The YAML Frontmatter was not changed.

1. A variable size cannot be changed in Forth, see
https://forth-standard.org/standard/usage#subsubsection.3.3.3.3

2. `variable` shall not be used to create a variable to hold a floating-point number. Use `fvariable` instead.

3. In Forth, `i` is NOT equivalent to `r@`. Remove the corresponding sentence.

4. Add an example of using the return stack and `begin ... while ... repeat` loop.

5. Make `one-to-12` do what its name suggests.

6. Add a link to the Forth Standard.

7. Make some comments more consistent (e.g. instead of using the terms "item" and "element", use "item" throughout).

8. In some places, make comments more correct or detailed, briefly explain the stack diagrams.
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.

1 participant