News for hackers. Stuff that matters.
Re:I am not yet ready to switch to Zig from Rust by deathanatos on Friday June 14, 2024 @12:51PM (#40682441)
Steelman their example. Given that they named the member "MaybeHasCat", it's pretty clearly meant to analogue an Option<Cat>; if you correct the small typo then (make the type of "MaybeHasCat" a pointer, so that it can store nil for the other half of the Maybe), the example behaves exactly as they describe.

There are no comments on this comment yet.