Comment

Comment by magicalhippo

Right, but my point is, the code which would raise an error because the pointer is nil now raises an error because the Optional is not set.

Is there really that much of a difference between those cases?

I agree though that in an interface, Optional conveys a more explicit meaning than something pointer-like, which is always a good thing.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton