Comment

Comment by n_plus_1_acc

std::optional<T> is fundamentally broken because it has an imolicit conversion (or operator* or something) to T. If you forget to check if it's empty you get UB.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton