Discussion about this post

User's avatar
Ryan Taylor's avatar

Great article packed with good information as always.

Expand full comment
Lesley Lai's avatar

This is similar to the "null object pattern" in OOP, albeit lacking polymorphism. Since we can't designate the "null struct" as const, we must find an alternative method to prevent writes to it. The use of that `read_only` macro is pretty clever.

Expand full comment
12 more comments...

No posts