<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Joshua O'Connor</title>
  <link href="https://joshuao.com/"/>
  <link href="https://joshuao.com/index.xml" rel="self"/>
  <updated>2025-10-20T12:00:00Z</updated>
  <id>https://joshuao.com/</id>
  <author>
    <name>Joshua O'Connor</name>
  </author>

  <entry>
    <title>Zig Assert Strategies</title>
    <link href="https://joshuao.com/posts/zig-assert-strategies.html"/>
    <id>https://joshuao.com/posts/zig-assert-strategies.html</id>
    <updated>2025-10-20T12:00:00Z</updated>
    <summary>
      This post is about how to express various kinds of assert in Zig.
      - std.debug.assert is a normal function, and it may evaluate its parameter even in ReleaseFast mode.
      - All safety-checked illegal behaviour can be dealt with using a custom panic handler.
      - Use if (@import("builtin").mode == .Debug) when you’re feeling paranoid about slow asserts.
    </summary>
  </entry>
</feed>
