authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-06-04 17:02:49-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-06-04 17:02:49-07:00
log621844bde551ee1a9b8142d7d146d1fa804247a2
tree5360dcc07aff745cbcbbb09183b9f101fc27bca3
parent0bf7c4c4d70614fb809e84a515ba5b76bde57e19

zig zen update

- rewordings - "memory is a resource" goes without saying - emphasize the final point

2 files changed, 11 insertions(+), 10 deletions(-)

doc/langref.html.in+5-5
......@@ -8322,17 +8322,17 @@ keyword <- KEYWORD_addrspace / KEYWORD_align / KEYWORD_allowzero / KEYWORD_and
83228322 <li>Communicate intent precisely.</li>
83238323 <li>Edge cases matter.</li>
83248324 <li>Favor reading code over writing code.</li>
8325 <li>Only one obvious way to do things.</li>
8325 <li>There is an idiomatic way to do it.</li>
83268326 <li>Runtime crashes are better than bugs.</li>
83278327 <li>Compile errors are better than runtime crashes.</li>
83288328 <li>Incremental improvements.</li>
83298329 <li>Avoid local maximums.</li>
83308330 <li>Reduce the amount one must remember.</li>
8331 <li>Focus on code rather than style.</li>
8332 <li>Resource allocation may fail; resource deallocation must succeed.</li>
8333 <li>Memory is a resource.</li>
8334 <li>Together we serve the users.</li>
8331 <li>Focus on logic, not style.</li>
8332 <li>Resource allocation may fail.</li>
8333 <li>Resource deallocation must succeed.</li>
83358334 </ul>
8335 <p>Together, we serve the users!</p>
83368336 {#header_close#}
83378337 {#header_close#}
83388338 </main></div>
src/main.zig+6-5
......@@ -6273,16 +6273,17 @@ const info_zen =
62736273 \\ * Communicate intent precisely.
62746274 \\ * Edge cases matter.
62756275 \\ * Favor reading code over writing code.
6276 \\ * Only one obvious way to do things.
6276 \\ * There is an idiomatic way to do it.
62776277 \\ * Runtime crashes are better than bugs.
62786278 \\ * Compile errors are better than runtime crashes.
62796279 \\ * Incremental improvements.
62806280 \\ * Avoid local maximums.
62816281 \\ * Reduce the amount one must remember.
6282 \\ * Focus on code rather than style.
6283 \\ * Resource allocation may fail; resource deallocation must succeed.
6284 \\ * Memory is a resource.
6285 \\ * Together we serve the users.
6282 \\ * Focus on logic, not style.
6283 \\ * Resource allocation may fail.
6284 \\ * Resource deallocation must succeed.
6285 \\
6286 \\Together, we serve the users!
62866287 \\
62876288 \\
62886289;