www.ziglang.org
www.ziglang.org copied to clipboard
Hard-to-read text in `why_zig_rust_d_cpp`
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).
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.
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.
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.