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

Hard-to-read text in why_zig_rust_d_cpp #341

Open
jh05013 opened this issue Mar 26, 2024 · 3 comments
Open

Hard-to-read text in why_zig_rust_d_cpp #341

jh05013 opened this issue Mar 26, 2024 · 3 comments

Comments

@jh05013
Copy link

jh05013 commented Mar 26, 2024

I and my friends had a discussion for 2 hours about what this means:

Zig is designed such that the laziest thing a programmer can do is handle errors correctly ...

Granted, English isn't our first language, but I'm relatively comfortable with reading English text and yet I had to read this part multiple times to make sense of it. I think "the laziest thing ..." is a bit of an indirect expression and it was the source of confusion for us.

I doubt the Korean translation for this part is correct, which didn't help either (In fact, it has several mistranslations and unnatural word-for-word translations; I'll make a PR once I fully understand the original text).

@dimdin
Copy link

dimdin commented Mar 28, 2024

The following has a similar meaning:

Zig is designed such that it takes no effort from the programmer to handle errors correctly

and implies:

Zig is designed such that it takes effort from the programmer to not handle errors correctly

I hope it helps.

@jh05013
Copy link
Author

jh05013 commented Mar 29, 2024

Thanks, that sounds in line with what I was thinking of.

I meant to say that part could be rewritten, but I accidentally left it out. I'll include it in my future PR if that's fine.

@Atomk
Copy link
Contributor

Atomk commented Apr 19, 2024

Maybe it makes more sense knowing the context, Andrew in a few talks (like here) said that programmers are lazy, so if the language lets them get away without handling an error, they will probably avoid doing it. So one of the goals in Zig is to make it easier (or less forgiving) so that even if you are lazy, you'll probably handle errors correctly. I also am not a native speaker and while I understood that sentence, I agree it's not exactly entry-level English.

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

3 participants