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

Add fundamental elements #128

Open
km19809 opened this issue Nov 29, 2021 · 2 comments
Open

Add fundamental elements #128

km19809 opened this issue Nov 29, 2021 · 2 comments

Comments

@km19809
Copy link

km19809 commented Nov 29, 2021

I am very new to Zig, so I read this to learn the basics.
But I think this is not fully self-contained yet.
For example, there are no explanations about operators; Instead, this tutorial mentions some of them in other parts. So I have to find boolean operators from the official docs.
There is no 'else if' too.
Can you add these 'basics' to the tutorial, so we (newbies) can learn basics without official documents?
I know these requests are too basic, and official documents are already helpful. But I believe the tutorial should be understandable without official documentation.
I hope you consider my requests.

Thank you.

@matu3ba
Copy link
Contributor

matu3ba commented Apr 4, 2022

But I believe the tutorial should be understandable without official documentation.

The guide assumes

    Prior experience programming
    Some understanding of low-level programming concepts

Did you try ziglings https://github.com/ratfactor/ziglings which does not make this assumptions?

@km19809
Copy link
Author

km19809 commented Apr 8, 2022

After much time passes, I feel more confident on zig now. I do not think they should be explained.

However, I still think that some common operators would be introduced.
In other words, they should appear in the example codes.
Because the forms of operators and keywords vary.

Some languages use and and or as logical operators.
Python has a keyword that represents the else-if clause.
Of course, these cases are exceptional.
But I want to say that some prior experience can be more confusing.
In my case, I was new to zig, but not to programming. I already know languages such as C/C++, Python and Rust.

I am not saying that the tutorial should explain all the basics.
I just think that It will be helpful, if the tutorial give some hint. ex) an example which contains multiple conditions.

I am not fluent in English, so I am afraid if this comment is awkward.

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

No branches or pull requests

2 participants