Hacker News new | ask | show | jobs
by tantalor 3612 days ago
> removing optional values

Slight correction: optional values are not removed. Quite the opposite; the "optional" keyword is removed because now all fields are optional. It is actually required values which were removed.

2 comments

True. But when using them, it feels like every field is "present" and you don't have to worry about the "optional, missing" case.
For primitives, yes, but not messages.
You're both right. What has been removed is the concept of presences altogether.