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

OCaml Tour: -New sections- Introduction and Before We Begin. Added REPL definition and double semicolon use #2336

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Alfredo-Carlon
Copy link

@Alfredo-Carlon Alfredo-Carlon commented Apr 11, 2024

Resolves #2324

Hi, in this I explicitly mark the Introduction and Prerequisites (Before We Begin) sections. I think it is easier to read, but I'm not sure if the Introduction got shorter :-)
In the prerequisites I also added REPL's definition and on the first example why ;; is required.

Copy link
Collaborator

@cuihtlauac cuihtlauac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @Alfredo-Carlon I think this going in the right direction. Here are suggestions trying to push even further.

data/tutorials/getting-started/1_01_a_tour_of_ocaml.md Outdated Show resolved Hide resolved
data/tutorials/getting-started/1_01_a_tour_of_ocaml.md Outdated Show resolved Hide resolved
data/tutorials/getting-started/1_01_a_tour_of_ocaml.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@cuihtlauac cuihtlauac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Alfredo-Carlon What is your opinion on thoses suggestions?

Comment on lines +28 to +31

To walk through the basics of OCaml by trying out different elements in an interactive manner, we'll use UTop.
UTop (Universal Toplevel) allows interacting directly with OCaml by reading and evaluating OCaml phrases like expressions or value definitions and printing the result on the screen.
You can run UTop by using the `utop` command.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To walk through the basics of OCaml by trying out different elements in an interactive manner, we'll use UTop.
UTop (Universal Toplevel) allows interacting directly with OCaml by reading and evaluating OCaml phrases like expressions or value definitions and printing the result on the screen.
You can run UTop by using the `utop` command.
To walk through the basics of OCaml by trying out different elements in an interactive manner, we'll use UTop. You can run UTop by using the `utop` command. Exit it by pressing `Ctrl+D`.
UTop (Universal Toplevel) allows interacting directly with OCaml by reading and evaluating OCaml phrases like expressions or value definitions and printing the result on the screen.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cuihtlauac
Yes we need to mention how to exit UTop :-D
I don't think the shift of sentences helps us.
This is my reasoning:
1st Sentence: Why we'll use something call UTop
2nd Sentence: What is that thing that we will use.
3rd Sentence: How you can start using it.
If we shift the sentences I feel like it breaks a bit the dynamic.
Does this make sense?

data/tutorials/getting-started/1_01_a_tour_of_ocaml.md Outdated Show resolved Hide resolved
Co-authored-by: Cuihtlauac Alvarado <cuihtlauac@users.noreply.github.com>
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.

(Docs) Shorten Introduction on "Tour of OCaml" and Mention Double Semicolon
3 participants