Discussion about this post

User's avatar
Ryan Taylor's avatar

Great article packed with good information as always.

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.

13 more comments...

No posts

Ready for more?