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...@@ -8322,17 +8322,17 @@ keyword <- KEYWORD_addrspace / KEYWORD_align / KEYWORD_allowzero / KEYWORD_and
8322 <li>Communicate intent precisely.</li>8322 <li>Communicate intent precisely.</li>
8323 <li>Edge cases matter.</li>8323 <li>Edge cases matter.</li>
8324 <li>Favor reading code over writing code.</li>8324 <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>
8326 <li>Runtime crashes are better than bugs.</li>8326 <li>Runtime crashes are better than bugs.</li>
8327 <li>Compile errors are better than runtime crashes.</li>8327 <li>Compile errors are better than runtime crashes.</li>
8328 <li>Incremental improvements.</li>8328 <li>Incremental improvements.</li>
8329 <li>Avoid local maximums.</li>8329 <li>Avoid local maximums.</li>
8330 <li>Reduce the amount one must remember.</li>8330 <li>Reduce the amount one must remember.</li>
8331 <li>Focus on code rather than style.</li>8331 <li>Focus on logic, not style.</li>
8332 <li>Resource allocation may fail; resource deallocation must succeed.</li>8332 <li>Resource allocation may fail.</li>
8333 <li>Memory is a resource.</li>8333 <li>Resource deallocation must succeed.</li>
8334 <li>Together we serve the users.</li>
8335 </ul>8334 </ul>
8335 <p>Together, we serve the users!</p>
8336 {#header_close#}8336 {#header_close#}
8337 {#header_close#}8337 {#header_close#}
8338 </main></div>8338 </main></div>
src/main.zig+6-5
...@@ -6273,16 +6273,17 @@ const info_zen =...@@ -6273,16 +6273,17 @@ const info_zen =
6273 \\ * Communicate intent precisely.6273 \\ * Communicate intent precisely.
6274 \\ * Edge cases matter.6274 \\ * Edge cases matter.
6275 \\ * Favor reading code over writing code.6275 \\ * Favor reading code over writing code.
6276 \\ * Only one obvious way to do things.6276 \\ * There is an idiomatic way to do it.
6277 \\ * Runtime crashes are better than bugs.6277 \\ * Runtime crashes are better than bugs.
6278 \\ * Compile errors are better than runtime crashes.6278 \\ * Compile errors are better than runtime crashes.
6279 \\ * Incremental improvements.6279 \\ * Incremental improvements.
6280 \\ * Avoid local maximums.6280 \\ * Avoid local maximums.
6281 \\ * Reduce the amount one must remember.6281 \\ * Reduce the amount one must remember.
6282 \\ * Focus on code rather than style.6282 \\ * Focus on logic, not style.
6283 \\ * Resource allocation may fail; resource deallocation must succeed.6283 \\ * Resource allocation may fail.
6284 \\ * Memory is a resource.6284 \\ * Resource deallocation must succeed.
6285 \\ * Together we serve the users.6285 \\
6286 \\Together, we serve the users!
6286 \\6287 \\
6287 \\6288 \\
6288;6289;