Guards! Guards
Summary
An exploration of a surprising behavior in Elixir guards where the `is_map_key/2` guard can cause a guard failure instead of returning false, breaking the commutativity of boolean operators.
View Cached Full Text
Cached at: 06/27/26, 05:55 PM
Similar Articles
The case of the mysterious changes to integers when there shouldn’t have been any code generation effect
A developer discovers that swapping two equivalent macros caused unexpected integer changes in unrelated functions, and the blog post investigates the mystery, questioning an LLM's explanation about control flow guard.
More Molly Guards
A follow-up post showcasing various examples of 'molly guards'—physical and software design elements that prevent accidental button presses or actions—ranging from IBM typewriters to Chrome's quit dialog.
Clojure 1.13 adds support for checked keys
Clojure 1.13.0-alpha1 is released, adding checked keys for map destructuring that enforce required keys and throwing exceptions when missing, along with other improvements.
PrefixGuard: From LLM-Agent Traces to Online Failure-Warning Monitors
# Paper page - PrefixGuard: From LLM-Agent Traces to Online Failure-Warning Monitors Source: [https://huggingface.co/papers/2605.06455](https://huggingface.co/papers/2605.06455) ## Abstract PrefixGuard enables effective online monitoring of LLM agents through trace analysis and prefix\-based risk scoring, demonstrating strong performance across multiple benchmark tasks while providing diagnostic insights for alert reliability\. Large language model \(LLM\) agents now execute long, tool\-using ta
@gwenshap: One quirk of AI generated code is excessive guard rails. Recently, I wanted to test a new API with a local stack. I ask…
A developer shares an experience where OpenAI's Codex added an excessive guard rail by inserting a runtime extension existence check into an API, which a human engineer would never do.