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

Some chapter 1 grammar/flow suggestions #105

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

Conversation

burlingsmith
Copy link

@burlingsmith burlingsmith commented Jan 17, 2025

Some grammar or flow fixes I noted down while starting to read the book. Primarily minor grammar fixes, but a few suggested changes to sentences I found confusing.

Please let me know if you have any questions or if this is not the sort of contribution you are looking for. Thank you!

@burlingsmith
Copy link
Author

I assign the copyright of this contribution to Pedro Duarte Faria

@pedropark99
Copy link
Owner

Thank you @burlingsmith for your contribution! I will take a look at it 😉

Copy link
Owner

@pedropark99 pedropark99 left a comment

Choose a reason for hiding this comment

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

I don't have time right now to review everything, so I will come back here soon. But this is what I've spotted so far.

This phrase is specially true for C++ programmers. Because C++ is a gigantic language,
with tons of features, and also, there are lots of different "flavors of C++". These elements
are what makes C++ so complex and hard to learn. Zig tries to go in the opposite direction.
This phrase is especially true for C++ programmers because C++ is a gigantic language,
Copy link
Owner

Choose a reason for hiding this comment

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

I prefer to end the phrase in the "programmers" with the final dot. It feels a better reading flow to me.

Suggested change
This phrase is especially true for C++ programmers because C++ is a gigantic language,
This phrase is especially true for C++ programmers. Because C++ is a gigantic language,

your C code. With macros, you are no longer 100% sure about which pieces
of the code are being sent to the compiler, i.e.
they obscures the actual source code that you wrote.
The phrase above is still important for C programmers too because, even with C being a simple
Copy link
Owner

Choose a reason for hiding this comment

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

Once again, ending the phrase with the dot, gives me a better reading flow here. Although you did some nice changes in this paragraph.

Suggested change
The phrase above is still important for C programmers too because, even with C being a simple
The phrase above is still important for C programmers too. Because, even with C being a simple

You also don't have a hidden control flow happening behind the scenes. And, you also
don't have functions or operators from the standard library that make
hidden memory allocations behind your back.

By being a simpler language, Zig becomes much more clear and easier to read/write,
but at the same time, it also achieves a much more robust state, with more consistent
By being a simpler language, Zig becomes much clearer and easier to read and write
Copy link
Owner

Choose a reason for hiding this comment

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

Nice

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.

2 participants